Matrix() builds a matrix of expressions from a list of rows, from an R
matrix, from a vector (a column), or from dimensions and a function
f(i, j) or a data list in row-major order. zeros(), ones(), eye()
and diag_matrix() build special matrices. +, - and scalar * work as
usual; * between two matrices of equal shape is elementwise, %*% is the
matrix product and %^% the matrix power. [ indexes like R matrices.
A scalar added to or subtracted from a matrix acts on every entry, as R
arithmetic does; SymPy raises a TypeError for Matrix + 2 instead.
Usage
Matrix(data, ncol = NULL, f = NULL)
zeros(n, m = n)
ones(n, m = n)
eye(n, m = n)
diag_matrix(...)
A %^% n