Function reference · Linear algebra

matrix

Constructs a matrix from row vectors.

Each argument supplies one row. Rows must have matching lengths, and their elements are converted to Nerdamer expressions.

The result is a Matrix entity that can be used by determinant, matrix methods, and other linear-algebra operations.

Examples

These examples use Nerdamer Notation.

Construct a 2 by 2 matrix.

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

Interfaces

The same operation is available through the interfaces below.

Nerdamer Notation · nerdamer API

Nerdamer Notation

Use this form inside input passed to nerdamer(...).

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

Parameters

  • row — One or more row vectors or row expressions.

nerdamer.matrix

Call the operation through the default nerdamer import.

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

Parameters

NameTypeDescription
argsVector | NerdamerInput[][]One or more arrays, each representing a row of the matrix.

Returns

Matrix — A new Matrix instance.

Browse the nerdamer API →

← Back to Reference