25 lines
404 B
Plaintext
25 lines
404 B
Plaintext
|
|
{{alias}}( shape )
|
|
Returns the number of non-singleton dimensions.
|
|
|
|
A singleton dimension is a dimension whose size is equal to `1`.
|
|
|
|
Parameters
|
|
----------
|
|
shape: Array<integer>
|
|
Array shape.
|
|
|
|
Returns
|
|
-------
|
|
n: integer
|
|
Number of non-singleton dimensions.
|
|
|
|
Examples
|
|
--------
|
|
> var n = {{alias}}( [ 3, 1, 3 ] )
|
|
2
|
|
|
|
See Also
|
|
--------
|
|
|