UNPKG

@stdlib/strided

Version:
28 lines (20 loc) 545 B
{{alias}}( dtype ) Returns the enumeration constant associated with a strided array data type string. 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: string Data type string. Returns ------- out: integer|null Enumeration constant. Examples -------- > var out = {{alias}}( 'float64' ) <number> See Also --------