time-to-botec/js/node_modules/@stdlib/ndarray/base/singleton-dimensions/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

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
--------