JavaScript / TypeScript API
nerdamer/structures
Matrices, vectors, sets, collections, dictionaries, and related operations.
Direct npm import. The items on this page are JavaScript / TypeScript exports from
nerdamer/structures. For functions used inside nerdamer('...'), see Nerdamer Notation.Functions
cross(a: ParserEntity, b: ParserEntity): Expression | VectorFunctionComputes a three-dimensional cross product or preserves symbolic operands.
determinant(M: Matrix): ExpressionFunctionComputes the determinant without mutating the supplied Matrix.
dot(a: ParserEntity, b: ParserEntity): ExpressionFunctionComputes the dot product of two Vectors or preserves two symbolic operands.
imatrix(x: Expression): Expression | MatrixFunctionCreates an identity matrix of integer size.
Classes
Collection: unknownClassAn ordered heterogeneous collection of parser entities.
Dictionary: unknownClassA key-value container where keys are strings (variable names) and values are any ParserEntity. Supports element-wise arithmetic operations.
Matrix: unknownClassA rectangular two-dimensional matrix of scalar Expression elements.
ValuesSet: unknownClassA finite mathematical set of Nerdamer parser values.
Vector: unknownClassAn ordered, operable parser aggregate with heterogeneous ParserEntity elements.
