Constant matrix

Returns a constant matrix: a matrix with all its entries equal to a given number.

constant_matrix(Integer, Expression)

Given an integer n and an expression e, constructs a matrix of dimensions n cross times n with all its entries equal to e.

constant_matrix(Integer, Integer, Expression)

Given two integers n and m and an expression e, constructs a matrix of dimensions n cross times m with all its entries equal to e.