Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ndarray/same-kind-casts/docs/types/index.d"

Index

Functions

Functions

sameKindCasts

  • sameKindCasts(dtype?: any): any
  • Returns a list of ndarray data types to which a provided ndarray data type can be safely cast or cast within the same "kind".

    Notes

    • If not provided an ndarray data type, the function returns a casting table.
    • If provided an unrecognized ndarray data type, the function returns null.

    Parameters

    • Optional dtype: any

      ndarray data type value

    Returns any

    list of ndarray data types or null

    Example

    var list = sameKindCasts( 'float32' );
    // returns [...]