Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

enum2str

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

    Parameters

    • dtype: number

      data type enumeration constant

    Returns string | null

    data type string

    Example

    var str2enum = require( `@stdlib/strided/base/dtype-str2enum` );
    
    var v = str2enum( 'float64' );
    // returns <number>
    
    var dt = enum2str( v );
    // returns 'float64'