XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ z_dense_nnz()

void z_dense_nnz ( int  m,
int  n,
int  lda,
const doublecomplex  a[],
int *  nnz,
int *  info 
)

Number of nonzero elements in dense matrix (Complex matrices)

Purpose
This routine counts the number of nonzero elements in dense matrix.
Parameters
[in]mNumber of rows of the matrix. (m >= 0)
[in]nNumber of columns of the matrix. (n >= 0)
[in]ldaLeading dimension of array a[][]. (lda >= m)
[in]a[][]Array a[la][lda] (la >= n)
The dense matrix.
[out]nnzNumber of nonzero elements in the matrix.
[out]info= 0: Successful exit.
= i < 0: The (-i)-th argument is invalid.