Skip to content

MatrixData

Defined in: packages/engine/src/vm/Value.ts:28

A general rows×cols matrix, a vector is just a 1×N (row) or N×1 (column) matrix. data is COLUMN-MAJOR (data[row + col*rows]), matching the spec’s own a[index] column-major indexing semantics directly (no translation needed for single-index reads). hasSymbolic lets every numeric matrix op fast-path the all-numeric case with one boolean check, mirroring binaryOp()’s existing Number+Number fast path, computed by matrixValue() itself (true the moment any cell is a SymbolicNode object rather than a plain number/boolean), not something callers set by hand.

readonly cols: number;

Defined in: packages/engine/src/vm/Value.ts:30


readonly data: readonly MatrixEntry[];

Defined in: packages/engine/src/vm/Value.ts:31


readonly hasSymbolic: boolean;

Defined in: packages/engine/src/vm/Value.ts:32


readonly rows: number;

Defined in: packages/engine/src/vm/Value.ts:29