Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "strided/base/meta-data-props/docs/types/index.d"

Index

Interfaces

Functions

Functions

setProps

  • setProps(meta: Meta, dtypes: ArrayLike<any>, obj: any, bool: boolean): any
  • Defines non-enumerable read-only properties which expose strided array function meta data.

    Parameters

    • meta: Meta

      function meta data

    • dtypes: ArrayLike<any>

      list of strided array data types

    • obj: any

      object on which to define properties

    • bool: boolean

      boolean indicating whether the provided object should describe an "ndarray" function interface

    Returns any

    object on which properties were defined

    Example

    // Define strided array function meta data:
    var meta = {
        'nargs': 7,
        'nin': 1,
        'nout': 1
    };
    
    // Define the list of strided array data types:
    var dtypes = [
        'float64', 'float64',
        'float32', 'float32',
        'generic', 'generic'
    ];
    
    // Define an object/function on which to set the properties:
    var obj = {};
    
    // Set the properties:
    setProps( meta, dtypes, obj, false );