Returns the number of non-zero elements in the matrix
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_type), | intent(in) | :: | matrix |
matrix from which to get data |
PURE FUNCTION dbcsr_get_nze(matrix) RESULT(num_nze) !! Returns the number of non-zero elements in the matrix TYPE(dbcsr_type), INTENT(IN) :: matrix !! matrix from which to get data INTEGER :: num_nze num_nze = matrix%nze END FUNCTION dbcsr_get_nze