Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Interfaces

Functions

Functions

Export assignment signatures

  • Generates a list of binary interface signatures from strided array data types.

    Notes

    • The function returns a strided array having a stride length of 3 (i.e., every 3 elements define a binary interface signature).
    • For each signature (i.e., set of three consecutive non-overlapping strided array elements), the first two elements are the input data types and the third element is the return data type.
    • All signatures follow type promotion rules.
    throws

    must provide recognized data types

    Parameters

    • dtypes1: ArrayLike<any>

      list of supported data types for the first argument

    • dtypes2: ArrayLike<any>

      list of supported data types for the second argument

    • dtypes3: ArrayLike<any>

      list of supported data types for the output

    • Optional options: Options

      options

    Returns ArrayLike < string | number >

    strided array containing binary interface signatures

    Example

    var dtypes = [
        'float64',
        'float32',
        'int32',
        'uint8'
    ];
    
    var sigs = signatures( dtypes, dtypes, dtypes );
    // returns [ 'float32', 'float32', 'float32', ... ]