quantElementCount

Compute the total number of logical elements from a shape.

Return

Product of all dimensions, or 1 for a scalar (empty shape)

Parameters

shape

Logical element dimensions