25 lines
396 B
Plaintext
25 lines
396 B
Plaintext
|
|
||
|
{{alias}}( shape )
|
||
|
Returns the number of 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 singleton dimensions.
|
||
|
|
||
|
Examples
|
||
|
--------
|
||
|
> var n = {{alias}}( [ 3, 1, 3 ] )
|
||
|
1
|
||
|
|
||
|
See Also
|
||
|
--------
|
||
|
|