Create a Compressed Sparse Row Storage (CSR) Format Matrix
Create a Compressed Sparse Row Storage (CSR) Format Matrix
the data to feed
The indices array stores the column index for each non-zero element in data
The indptr array is what will help identify the rows where the data appears
the shape of CSR NDArray to be created
the context of this NDArray
SparseNDArray
RowSparseNDArray stores the matrix in row sparse format, which is designed for arrays of which most row slices are all zeros
RowSparseNDArray stores the matrix in row sparse format, which is designed for arrays of which most row slices are all zeros
NDArray input
in NDArray. Only DType.Int64 supported
shape of the NDArray
Context
RowSparseNDArray stores the matrix in row sparse format, which is designed for arrays of which most row slices are all zeros
RowSparseNDArray stores the matrix in row sparse format, which is designed for arrays of which most row slices are all zeros
Any Array(Array(... Array(Float)))
the indices to store the data
shape of the NDArray
Context
SparseNDArray