Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

ndarray

Multidimensional arrays.

Usage

var ns = require( '@stdlib/ndarray' );

ns

ndarray namespace.

var o = ns;
// returns {...}
Creation

The namespace exports the following functions to create multidimensional arrays:

Manipulation

The namespace exports the following functions to manipulate multidimensional arrays:

Search

The namespace exports the following functions to search multidimensional arrays:

Inspection

The namespace exports the following functions to inspect multidimensional arrays:

  • dataBuffer( x ): return the underlying data buffer of a provided ndarray.
  • dtype( x ): return the data type of a provided ndarray.
  • flag( x, name ): return a specified flag for a provided ndarray.
  • flags( x ): return the flags of a provided ndarray.
  • ndims( x ): return the number of ndarray dimensions.
  • numelDimension( x, dim ): return the size (i.e., number of elements) of a specified dimension for a provided ndarray.
  • numel( x ): return the number of elements in an ndarray.
  • offset( x ): return the index offset specifying the underlying buffer index of the first iterated ndarray element.
  • order( x ): return the layout order of a provided ndarray.
  • shape( x ): return the shape of a provided ndarray.
  • stride( x, dim ): return the stride along a specified dimension for a provided ndarray.
  • strides( x ): return the strides of a provided ndarray.
Indexing

The namespace exports the following functions to index multidimensional arrays:

Conversion

The namespace exports the following functions to convert multidimensional arrays:

Data Types

The namespace exports the following functions for working with multidimensional array data types:

Sub-namespaces

The namespace contains the following sub-namespaces:

  • base: base ndarray.
  • iter: multidimensional array iterators.
  • vector: vector constructors and associated utilities.
Utilities

The namespace contains the following multidimensional array utility functions:

Examples

var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/ndarray' );

console.log( objectKeys( ns ) );