Loading

->MAT

lists math conversion

The ->MAT function converts nested lists of numbers (2D array with same number of columns) into a Matrix.

MATRIX objects cannot be represented on the stack.

Matrix entries must be numbers.

->MAT is available since version 1.0.6.

See also

Signatures

Examples

[ [ 42 41 40 42.42 ] [ 42 41 40 0.2 ] [ 42 41 40 42.42 ] ] ->MAT DUP TYPEOF
//vector * matrix [ 0 1 0 ] ->VEC [ [ 1 2 3 4 ] [ 10 20 30 40 ] [ 100 200 300 400 ] ] ->MAT * VEC-> // matrix * t(matrix) [ [ 1 2 3 4 ] [ 10 20 30 40 ] [ 100 200 300 400 ] ] ->MAT DUP TRANSPOSE * MAT->