| 59 | //////////////////////////////////////////////////////////////////////////////// |
| 60 | template<typename T> |
| 61 | af_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 | |
| 70 | template<typename T> |
| 71 | af_array createSparseArrayFromPtr(const af::dim4 &dims, const dim_t nNZ, |
nothing calls this directly
no test coverage detected