Diagonal matrix
Constructs a diagonal matrix.
Syntax
diagonal_matrix(List | Range | Vector)
diagonal_matrix(Integer, Expression)
Description
Given a list, range or vector , constructs a diagonal matrix with the elements of in the diagonal.
Given an integer and an expression , constructs a diagonal matrix of dimension with coefficients equal to .