time-to-botec/js/node_modules/@stdlib/ndarray/same-kind-casts/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

29 lines
678 B
Plaintext

{{alias}}( [dtype] )
Returns a list of ndarray data types to which a provided ndarray data type
can be safely cast or cast within the same "kind".
If not provided an ndarray data type, the function returns a casting table.
If provided an unrecognized ndarray data type, the function returns `null`.
Parameters
----------
dtype: string (optional)
ndarray data type.
Returns
-------
out: Object|Array<string>|null
ndarray data types to which a data type can be safely cast or cast
within the same "kind".
Examples
--------
> var out = {{alias}}( 'float32' )
<Array>
See Also
--------