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

Function createSparseArrayFromData

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

Source from the content-addressed store, hash-verified

59////////////////////////////////////////////////////////////////////////////////
60template<typename T>
61af_array createSparseArrayFromData(const dim4 &dims, const af_array values,
62 const af_array rowIdx, const af_array colIdx,
63 const af::storage stype) {
64 SparseArray<T> sparse = createArrayDataSparseArray(
65 dims, getArray<T>(values), getArray<int>(rowIdx), getArray<int>(colIdx),
66 stype);
67 return getHandle(sparse);
68}
69
70template<typename T>
71af_array createSparseArrayFromPtr(const af::dim4 &dims, const dim_t nNZ,

Callers

nothing calls this directly

Calls 2

getHandleFunction · 0.70

Tested by

no test coverage detected