Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "strided/base/dtype-str2enum/docs/types/index.d"

Index

Functions

Functions

str2enum

  • str2enum(dtype: string): number | null
  • Returns the enumeration constant associated with a strided array data type string.

    Notes

    • 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 number | null

    enumeration constant

    Example

    var v = str2enum( 'float64' );
    // returns <number>