Constant matrix Returns a constant matrix: a matrix with all its entries equal to a given number. Syntax constant_matrix(Integer, Expression) constant_matrix(Integer, Integer, Expression) Description constant_matrix(Integer, Expression) Given an integer and an expression , constructs a matrix of dimensions with all its entries equal to . constant_matrix(Integer, Integer, Expression) Given two integers and and an expression , constructs a matrix of dimensions with all its entries equal to . Related functions Constant vector, Diagonal matrix Table of Contents Syntax Description Related functions