time-to-botec/squiggle/node_modules/@stdlib/ndarray/casting-modes/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

28 lines
716 B
Plaintext

{{alias}}()
Returns a list of ndarray casting modes.
The output array contains the following modes:
- 'none': only allow casting between identical types
- 'equiv': allow casting between identical and byte swapped types
- 'safe': only allow "safe" casts
- 'same-kind': allow "safe" casts and casts within the same kind (e.g.,
between signed integers or between floats)
- 'unsafe': allow casting between all types (including between integers and
floats)
Returns
-------
out: Array<string>
List of ndarray casting modes.
Examples
--------
> var out = {{alias}}()
[ 'none', 'equiv', 'safe', 'same-kind', 'unsafe' ]
See Also
--------