Skip to main content

GetNNZ

This function returns the number of non zeros.

Calling example

ans = GetNNZ(obj)
ans = GetNNZ(obj, from="U"|"L"|"D"|"A" )
ans(1:3) = GetNNZ(obj, from=[""] )

This routine has three interfaces as shown below.

Interface

MODULE PURE FUNCTION GetNNZ( obj ) RESULT( Ans )
TYPE( CSRSparsity_ ), INTENT( IN ) :: obj
INTEGER( I4B ) :: Ans
END FUNCTION GetNNZ

In this case we get all the number of non-zeros in the sparse matrix.