Cyforanumera
npm

API reference · v1.0.2

API reference

This reference describes every function, class and option in numera 1.0.2, grouped like the NumPy reference. Each entry gives the signature, its arguments, the return type and an example. Every example is executed by the test suite, and a // => comment shows the result: for an NDArray, that is .toArray().

Naming

NumPy names become camelCase: expand_dims → expandDims, linalg.matrix_rank → linalg.matrixRank.

Keyword arguments

Python keyword arguments become an options object: np.sum(a, axis=0) → np.sum(a, { axis: 0 }).

Indexing

JavaScript has no a[1:3] syntax, so indexing uses a.get(...), a.slice(...) and a.set(...).

Array objects

Universal functions

Routines

Modules