Base ndarray.
var ns = require( '@stdlib/ndarray/base' );Base ndarray.
var o = ns;
// returns {...}bind2vind( shape, strides, offset, order, idx, mode ): convert a linear index in an underlying data buffer to a linear index in an array view.broadcastArray( arr, shape ): broadcast an ndarray to a specified shape.broadcastShapes( shapes ): broadcast array shapes to a single shape.bufferCtors( dtype ): ndarray data buffer constructors.bufferDataTypeEnum( buffer ): return the data type enumeration constant of an ndarray data buffer.bufferDataType( buffer ): return the data type of an ndarray data buffer.buffer( dtype, size ): create a zero-filled contiguous linear ndarray data buffer.bytesPerElement( dtype ): return the number of bytes per element provided an underlying array data type.char2dtype( [ch] ): return the data type string associated with a provided single letter character abbreviation.clampIndex( idx, max ): restrict an index to the interval[0,max].ndarray( dtype, buffer, shape, strides, offset, order ): create a multidimensional array.dtypeChar( [dtype] ): return the single letter abbreviation for an underlying array data type.dtypeDesc( [dtype] ): return the description for a specified data type.dtypeEnum2Str( dtype ): return the data type string associated with an ndarray data type enumeration constant.dtypeResolveEnum( dtype ): return the enumeration constant associated with a supported ndarray data type value.dtypeResolveStr( dtype ): return the data type string associated with a supported ndarray data type value.dtypeStr2Enum( dtype ): return the enumeration constant associated with an ndarray data type string.dtype2c( dtype ): return the C data type associated with a provided data type value.dtypes2signatures( dtypes, nin, nout ): transform a list of array argument data types into a list of signatures.expandDimensions( x, axis ): expand the shape of an array by inserting a new dimension of size one at a specified axis.scalar2ndarray( value, dtype ): convert a scalar value to a zero-dimensional ndarray.ind( idx, max, mode ): return an index given an index mode.ind2sub( shape, strides, offset, order, idx, mode ): convert a linear index to an array of subscripts.iterationOrder( strides ): given a stride array, determine array iteration order.maxViewBufferIndex( shape, strides, offset ): compute the maximum linear index in an underlying data buffer accessible to an array view.maybeBroadcastArray( arr, shape ): broadcast an ndarray to a specified shape if and only if the specified shape differs from the provided ndarray's shape.metaDataProps( meta, dtypes, obj ): define non-enumerable read-only properties which expose ndarray function meta data.minViewBufferIndex( shape, strides, offset ): compute the minimum linear index in an underlying data buffer accessible to an array view.minmaxViewBufferIndex( shape, strides, offset ): compute the minimum and maximum linear indices in an underlying data buffer which are accessible to an array view.ndarraylike2object( x ): convert anndarray-like object to an object likely to have the same "shape".nonsingletonDimensions( shape ): return the number of non-singleton dimensions.numel( shape ): return the number of elements in an array.prependSingletonDimensions( x, n ): prepend singleton dimensions.removeSingletonDimensions( x ): remove singleton dimensions.serializeMetaData( x ): serialize ndarray meta data.shape2strides( shape, order ): generate a stride array from an array shape.singletonDimensions( shape ): return the number of singleton dimensions.strides2offset( shape, strides ): determine the index offset which specifies the location of the first indexed value in a multidimensional array based on a stride array.strides2order( strides ): determine the order of a multidimensional array based on a provided stride array.sub2ind( shape, strides, offset, ...subscripts, mode ): convert subscripts to a linear index.ndarray2array( buffer, shape, strides, offset, order ): convert an ndarray buffer to a generic array.transpose( x ): transpose a matrix (or a stack of matrices).unaryLoopOrder( shape, stridesX, stridesY ): reorder ndarray dimensions and associated strides for loop interchange.unaryBlockSize( dtypeX, dtypeY ): resolve a loop block size for multi-dimensional array tiled loops.unary( arrays, fcn ): apply a unary callback to elements in an input ndarray and assign results to elements in an output ndarray.vind2bind( shape, strides, offset, order, idx, mode ): convert a linear index in an array view to a linear index in an underlying data buffer.wrapIndex( idx, max ): wrap an index on the interval[0,max].zerosLike( x ): create a zero-filled ndarray having the same shape and data type as a provided ndarray.zeros( dtype, shape, order ): create a zero-filled ndarray having a specified shape and data type.
The namespace contains the following sub-namespaces:
assert: base ndarray assertion utilities.
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/ndarray/base' );
console.log( objectKeys( ns ) );