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

Function sparse

src/api/cpp/sparse.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14namespace af {
15array sparse(const dim_t nRows, const dim_t nCols,
16 const array values, // NOLINT(performance-unnecessary-value-param)
17 const array rowIdx, // NOLINT(performance-unnecessary-value-param)
18 const array colIdx, // NOLINT(performance-unnecessary-value-param)
19 const af::storage stype) {
20 af_array out = 0;
21 AF_THROW(af_create_sparse_array(&out, nRows, nCols, values.get(),
22 rowIdx.get(), colIdx.get(), stype));
23 return array(out);
24}
25
26array sparse(const dim_t nRows, const dim_t nCols, const dim_t nNZ,
27 const void* const values, const int* const rowIdx,

Callers 15

sparseTesterFunction · 0.85
sparseTransposeTesterFunction · 0.85
convertCSRFunction · 0.85
convertCSCFunction · 0.85
createFunctionFunction · 0.85
sparseCastTesterFunction · 0.85
TESTFunction · 0.85
TYPED_TESTFunction · 0.85
sparseConvertTesterFunction · 0.85
TESTFunction · 0.85
mtxReadSparseMatrixFunction · 0.85
sparseArithTesterFunction · 0.85

Calls 5

af_create_sparse_arrayFunction · 0.50
arrayClass · 0.50
getMethod · 0.45

Tested by 1

mtxReadSparseMatrixFunction · 0.68