The operator get_diagonal_matrixget_diagonal_matrixGetDiagonalMatrixGetDiagonalMatrixget_diagonal_matrix generates a new matrix
Vector and copies the diagonal elements of the
Matrix to this new matrix. The Matrix is
defined by the matrix handle MatrixIDMatrixIDMatrixIDmatrixIDmatrix_id. The matrix
Vector has one column and n rows, where n = number of
diagonal elements. The operator returns the matrix handle
VectorIDVectorIDVectorIDvectorIDvector_id of the matrix Vector. Access to the
elements of the matrix is possible e.g., with the operator
get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixget_full_matrix.
If the parameters are valid, the operator
get_diagonal_matrixget_diagonal_matrixGetDiagonalMatrixGetDiagonalMatrixget_diagonal_matrix returns the value 2 (
H_MSG_TRUE)
. If necessary,
an exception is raised.