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

Function af_sparse_get_info

src/api/c/sparse.cpp:425–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425af_err af_sparse_get_info(af_array *values, af_array *rows, af_array *cols,
426 af_storage *stype, const af_array in) {
427 try {
428 if (values != NULL) { AF_CHECK(af_sparse_get_values(values, in)); }
429 if (rows != NULL) { AF_CHECK(af_sparse_get_row_idx(rows, in)); }
430 if (cols != NULL) { AF_CHECK(af_sparse_get_col_idx(cols, in)); }
431 if (stype != NULL) { AF_CHECK(af_sparse_get_storage(stype, in)); }
432 }
433 CATCHALL;
434
435 return AF_SUCCESS;
436}
437
438af_err af_sparse_get_values(af_array *out, const af_array in) {
439 try {

Callers 1

sparseGetInfoFunction · 0.50

Calls 4

af_sparse_get_valuesFunction · 0.70
af_sparse_get_row_idxFunction · 0.70
af_sparse_get_col_idxFunction · 0.70
af_sparse_get_storageFunction · 0.70

Tested by

no test coverage detected