XLPack 7.0
XLPack Numerical Library (Excel VBA) Reference Manual
Loading...
Searching...
No Matches

◆ DenseNnz()

Sub DenseNnz ( M As  Long,
N As  Long,
A() As  Double,
Nnz As  Long,
Optional Info As  Long 
)

Number of nonzero elements in dense matrix

Purpose
This routine counts the number of nonzero elements in dense matrix.
Parameters
[in]MNumber of rows of the matrix. (M >= 0) (If M = 0, returns without computation)
[in]NNumber of columns of the matrix. (N >= 0) (If N = 0, returns without computation)
[in]A()Array A(LA1 - 1, LA2 - 1) (LA1 >= M, LA2 >= N)
Input matrix.
[out]NnzNumber of nonzero elements in the matrix.
[out]Info(Optional)
= 0: Successful exit.
= i < 0: The (-i)-th argument is invalid.