Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ndarray/next-dtype/docs/types/index.d"

Index

Functions

Functions

nextDataType

  • nextDataType(dtype?: any): any
  • Returns the next larger ndarray data type of the same kind.

    Notes

    • If not provided a data type, the function returns a table.
    • If a data type does not have a next larger data type or the next larger type is not supported, the function returns -1.
    • If provided an unrecognized data type, the function returns null.

    Parameters

    • Optional dtype: any

      ndarray data type value

    Returns any

    next larger data type(s) or null

    Example

    var dt = nextDataType( 'float32' );
    // returns 'float64'