Returns the number of blocks in the matrix
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_type), | intent(in) | :: | matrix |
matrix from which to get data |
PURE FUNCTION dbcsr_get_num_blocks(matrix) RESULT(num_blocks) !! Returns the number of blocks in the matrix TYPE(dbcsr_type), INTENT(IN) :: matrix !! matrix from which to get data INTEGER :: num_blocks num_blocks = matrix%nblks END FUNCTION dbcsr_get_num_blocks