6.7 KiB
6.7 KiB
Base
Base strided.
Usage
var ns = require( '@stdlib/strided/base' );
ns
Base strided.
var o = ns;
// returns {...}
The following functions are currently exported:
binary( arrays, shape, strides, fcn )
: apply a binary callback to strided input array elements and assign results to elements in a strided output array.dmap( N, x, strideX, y, strideY, fcn )
: apply a unary function accepting and returning double-precision floating-point numbers to each element in a double-precision floating-point strided input array and assign each result to an element in a double-precision floating-point strided output array.dmskmap( N, x, strideX, mask, strideMask, y, strideY, fcn )
: apply a unary function accepting and returning double-precision floating-point numbers to each element in a double-precision floating-point strided input array according to a corresponding element in a strided mask array and assign each result to an element in a double-precision floating-point strided output array.mapBy( N, x, strideX, y, strideY, fcn, clbk[, thisArg] )
: apply a unary function to each element retrieved from a strided input array according to a callback function and assign each result to an element in a strided output array.mskunary( arrays, shape, strides, fcn )
: apply a unary callback to elements in a strided input array according to elements in a strided mask array and assign results to elements in a strided output array.nullary( arrays, shape, strides, fcn )
: apply a nullary callback and assign results to elements in a strided output array.quaternary( arrays, shape, strides, fcn )
: apply a quaternary callback to strided input array elements and assign results to elements in a strided output array.quinary( arrays, shape, strides, fcn )
: apply a quinary callback to strided input array elements and assign results to elements in a strided output array.smap( N, x, strideX, y, strideY, fcn )
: apply a unary function accepting and returning single-precision floating-point numbers to each element in a single-precision floating-point strided input array and assign each result to an element in a single-precision floating-point strided output array.smskmap( N, x, strideX, mask, strideMask, y, strideY, fcn )
: apply a unary function accepting and returning single-precision floating-point numbers to each element in a single-precision floating-point strided input array according to a corresponding element in a strided mask array and assign each result to an element in a single-precision floating-point strided output array.ternary( arrays, shape, strides, fcn )
: apply a ternary callback to strided input array elements and assign results to elements in a strided output array.unary( arrays, shape, strides, fcn )
: apply a unary callback to elements in a strided input array and assign results to elements in a strided output array.
Examples
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/strided/base' );
console.log( objectKeys( ns ) );