nonzero_count Interface

public interface nonzero_count

Module Procedures

private pure function nonzero_count_csr(x) result(rst)

Returns the number of non-zero values in the matrix.

Arguments

Type IntentOptional Attributes Name
class(csr_matrix), intent(in) :: x

The CSR matrix object.

Return Value integer(kind=int32)

The number of non-zero values in the matrix.

private pure function nonzero_count_msr(x) result(rst)

Returns the number of non-zero elements in an MSR matrix.

Arguments

Type IntentOptional Attributes Name
class(msr_matrix), intent(in) :: x

The MSR matrix.

Return Value integer(kind=int32)

The number of non-zero elements.