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

Function sparseGetInfo

src/api/cpp/sparse.cpp:57–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void sparseGetInfo(
58 array& values, array& rowIdx, array& colIdx, storage& stype,
59 const array in) { // NOLINT(performance-unnecessary-value-param)
60 af_array values_ = 0, rowIdx_ = 0, colIdx_ = 0;
61 af_storage stype_ = AF_STORAGE_DENSE;
62 AF_THROW(
63 af_sparse_get_info(&values_, &rowIdx_, &colIdx_, &stype_, in.get()));
64 values = array(values_);
65 rowIdx = array(rowIdx_);
66 colIdx = array(colIdx_);
67 stype = stype_;
68}
69
70// NOLINTNEXTLINE(performance-unnecessary-value-param)
71array sparseGetValues(const array in) {

Callers 1

TESTFunction · 0.85

Calls 3

af_sparse_get_infoFunction · 0.50
arrayClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected