|
|
◆ 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] | M | Number of rows of the matrix. (M >= 0) (If M = 0, returns without computation) |
| [in] | N | Number 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] | Nnz | Number of nonzero elements in the matrix. |
| [out] | Info | (Optional)
= 0: Successful exit.
= i < 0: The (-i)-th argument is invalid. |
|