matrix
a list of equal-length lists, rows of numbers
1# in nested brackets2[[1, 2], [3, 4]]3# filled with one value4matrix(2, 3, 7)[[7, 7, 7], [7, 7, 7]]5# the identity6identity(3)[[1, 0, 0], [0, 1, 0], [0, 0, 1]]Example outputCtrl+Enter to run
Functions that take it
Section titled “Functions that take it”transposea matrix with its rows and columns swappedmatmulthe matrix product of a and b, where a must have as many columns as b has rowsdetthe determinant of a square matrixinvthe inverse of a square matrix: the matrix that multiplies with it to give the identityidentitythe n by n identity matrix: 1 down the diagonal and 0 elsewherematrixa matrix of the given number of rows and columns, filled with fill (0 if left out)reshapethe items of xs laid out as a matrix of the given rows and columns, filling row by rowrowrow i of matrix m, counting from 0colcolumn j of matrix m, counting from 0hcattwo matrices side by side, which need the same number of rowsvcattwo matrices one above the other, which need the same number of columnsrrefthe reduced row echelon form of a matrix: the simplest matrix its row operations can reachrankthe rank of a matrix: how many of its rows are independent of the otherscofactorthe cofactor of m at row i and column j: the determinant of what is left without them, signedadjugatethe adjugate of a square matrix: the transposed cofactors, which divided by the determinant give the inversekronthe Kronecker product of two matrices: every item of a times the whole of b, in blockspermanentthe permanent of a square matrix: the determinant without the alternating signssolvesolve linear equations: the list x for which matmul(a, x) gives b
Example results generated on 2026-11-04. Ones using now, today or randomness will differ when you run them.