The operator get_diagonal_matrixget_diagonal_matrixGetDiagonalMatrixGetDiagonalMatrixGetDiagonalMatrix generates a new matrix
VectorVectorVectorVectorvector and copies the diagonal elements of the
MatrixMatrixMatrixMatrixmatrix to this new matrix. The MatrixMatrixMatrixMatrixmatrix is
defined by the matrix handle MatrixIDMatrixIDMatrixIDMatrixIDmatrixID. The matrix
VectorVectorVectorVectorvector has one column and n rows, where n = number of
diagonal elements. The operator returns the matrix handle
VectorIDVectorIDVectorIDVectorIDvectorID of the matrix VectorVectorVectorVectorvector. Access to the
elements of the matrix is possible e.g. with the operator
get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrix.
If the parameters are valid, the operator
get_diagonal_matrixget_diagonal_matrixGetDiagonalMatrixGetDiagonalMatrixGetDiagonalMatrix returns the value 2 (H_MSG_TRUE). If necessary,
an exception is raised.