time-to-botec/js/node_modules/@stdlib/ndarray/base/bytes-per-element/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

30 lines
539 B
Plaintext

{{alias}}( dtype )
Returns the number of bytes per element provided an underlying array data
type.
If provided an unknown/unsupported data type, the function returns `null`.
Parameters
----------
dtype: string
Data type.
Returns
-------
nbytes: integer|null
Number of bytes per element.
Examples
--------
> var nbytes = {{alias}}( 'float64' )
8
> nbytes = {{alias}}( 'generic' )
null
> nbytes = {{alias}}( 'foobar' )
null
See Also
--------