Zero norms

Header file

Implementation

The following routines return the number of nonzero entries in the matrix. This operation is often casually referred to as the zero “norm”.

C++ API

Int ZeroNorm(const Matrix<T> &A)
Int ZeroNorm(const AbstractDistMatrix<T> &A)

C API

ElError ElZeroNorm_i(ElConstMatrix_i, ElInt* numNonzero)
ElError ElZeroNorm_s(ElConstMatrix_s, ElInt* numNonzero)
ElError ElZeroNorm_d(ElConstMatrix_d, ElInt* numNonzero)
ElError ElZeroNorm_c(ElConstMatrix_c, ElInt* numNonzero)
ElError ElZeroNorm_z(ElConstMatrix_z, ElInt* numNonzero)
ElError ElZeroNormDist_i(ElConstDistMatrix_i, ElInt* numNonzero)
ElError ElZeroNormDist_s(ElConstDistMatrix_s, ElInt* numNonzero)
ElError ElZeroNormDist_d(ElConstDistMatrix_d, ElInt* numNonzero)
ElError ElZeroNormDist_c(ElConstDistMatrix_c, ElInt* numNonzero)
ElError ElZeroNormDist_z(ElConstDistMatrix_z, ElInt* numNonzero)

Python API

TODO