Skip to content

matrixValue

function matrixValue(
rows,
cols,
data): Value;

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

Create a Matrix value from an explicit shape + column-major data array. data.length must equal rows*cols, callers building a matrix from row-major source syntax (e.g. the [1,2;3,4] literal) must transpose into column-major order before calling this; see MatrixOps.ts’s rowMajorToColumnMajor().

ParameterType
rowsnumber
colsnumber
datareadonly MatrixEntry[]

Value