@stdlib/strided
Version:
Strided.
30 lines (22 loc) • 647 B
Plain Text
{{alias}}( dtype )
Returns the enumeration constant associated with a supported strided array
data type value.
Downstream consumers of this function should *not* rely on specific integer
values (e.g., `INT8 == 0`). Instead, the function should be used in an
opaque manner.
Parameters
----------
dtype: any
Data type value.
Returns
-------
out: integer|null
Enumeration constant.
Examples
--------
> var out = {{alias}}( 'float64' )
<number>
> out = {{alias}}( {{alias:@stdlib/strided/base/dtype-str2enum}}( 'float64' ) )
<number>
See Also
--------