1313
1414namespace af
1515{
16- array createSparseArray (const dim_t nRows, const dim_t nCols,
17- const array values, const array rowIdx, const array colIdx,
18- const af::storage stype)
16+ array sparse (const dim_t nRows, const dim_t nCols,
17+ const array values, const array rowIdx, const array colIdx,
18+ const af::storage stype)
1919 {
2020 af_array out = 0 ;
2121 AF_THROW (af_create_sparse_array (&out, nRows, nCols,
2222 values.get (), rowIdx.get (), colIdx.get (), stype));
2323 return array (out);
2424 }
2525
26- array createSparseArray (const dim_t nRows, const dim_t nCols, const dim_t nNZ,
27- const void * const values,
28- const int * const rowIdx, const int * const colIdx,
29- const dtype type, const af::storage stype,
30- const af::source src)
26+ array sparse (const dim_t nRows, const dim_t nCols, const dim_t nNZ,
27+ const void * const values,
28+ const int * const rowIdx, const int * const colIdx,
29+ const dtype type, const af::storage stype,
30+ const af::source src)
3131 {
3232 af_array out = 0 ;
3333 AF_THROW (af_create_sparse_array_from_ptr (&out, nRows, nCols, nNZ,
@@ -36,7 +36,7 @@ namespace af
3636 }
3737
3838
39- array createSparseArray (const array dense, const af::storage stype)
39+ array sparse (const array dense, const af::storage stype)
4040 {
4141 af_array out = 0 ;
4242 AF_THROW (af_create_sparse_array_from_dense (&out, dense.get (), stype));
0 commit comments