Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ndarray/base/dtypes2signatures/docs/types/index.d"

Index

Functions

Functions

Export assignment dtypes2signatures

  • Transforms a list of array argument data types into a list of signatures.

    throws

    first argument must be an array-like object

    throws

    second argument must be a nonnegative integer

    throws

    third argument must be a nonnegative integer

    throws

    first argument must have at least one element

    throws

    first argument must be compatible with second and third arguments

    Parameters

    • dtypes: ArrayLike<any>

      list of array argument data types

    • nin: number

      number of input array arguments

    • nout: number

      number of output array arguments

    Returns ArrayLike < string >

    list of signatures

    Example

    var dtypes = [
        'float64', 'float64',
        'float32', 'float32'
    ];
    
    var sigs = dtypes2signatures( dtypes, 1, 1 );
    // returns [ '(float64) => (float64)', '(float32) => (float32)' ]