MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / af_sparse_get_nnz

Function af_sparse_get_nnz

src/api/c/sparse.cpp:475–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473}
474
475af_err af_sparse_get_nnz(dim_t *out, const af_array in) {
476 try {
477 const SparseArrayBase base = getSparseArrayBase(in);
478 *out = base.getNNZ();
479 }
480 CATCHALL;
481 return AF_SUCCESS;
482}
483
484af_err af_sparse_get_storage(af_storage *out, const af_array in) {
485 try {

Callers 1

sparseGetNNZFunction · 0.50

Calls 1

getNNZMethod · 0.80

Tested by

no test coverage detected