Function reference · Linear algebra

matrix

Creates a matrix from its rows.

Each argument is one row, as a vector. All rows must have the same length.

Notation

matrix(row1[, row2, ...])

Write it in an expression: nerdamer('matrix([1,2],[3,4])'), or in the Playground.

nerdamer.matrix

nerdamer.matrix(...args: string | number | bigint | Vector | NerdamerInput[][]): Matrix

A method on the default import. Arguments can be strings, as in Notation.

Parameters

row
One or more row vectors or row expressions.

Examples

A 2 by 2 matrix.

matrix([1,2],[3,4])
// → matrix([1, 2], [3, 4])
Open in Playground

← Back to Function reference