Sparse RAFT types describe both the sparsity pattern and the values for APIs that accept sparse feature matrices or graph-style connectivity data.
Source header: raft/core/device_csr_matrix.hpp
Owning compressed sparse row matrix in device memory.
Initializes or changes the number of nonzero entries when the matrix owns its sparsity.
Parameters
Returns
void
Returns a span over the nonzero values.
Returns
raft::device_span<ElementType>
Returns a non-owning view of the CSR sparsity structure. The returned view exposes the row offsets and column indices.
Returns
structure_view_type
Returns a sparsity-preserving non-owning view of the sparse matrix.
Returns
view_type
Source header: raft/core/device_csr_matrix.hpp
Non-owning compressed sparse row matrix view over device memory.
Returns a span over the nonzero values.
Returns
raft::device_span<ElementType>
Returns a non-owning view of the CSR sparsity structure.
Returns
structure_view_type
Source header: raft/core/device_coo_matrix.hpp
Owning coordinate sparse matrix in device memory.
Initializes or changes the number of nonzero entries when the matrix owns its sparsity.
Parameters
Returns
void
Returns a span over the nonzero values.
Returns
raft::device_span<ElementType>
Returns a non-owning view of the COO sparsity structure. The returned view exposes the row and column coordinate arrays.
Returns
structure_view_type
Returns a sparsity-preserving non-owning view of the sparse matrix.
Returns
view_type
Source header: raft/core/device_coo_matrix.hpp
Non-owning coordinate sparse matrix view over device memory.
Returns a span over the nonzero values.
Returns
raft::device_span<ElementType>
Returns a non-owning view of the COO sparsity structure.
Returns
structure_view_type
Source header: raft/core/device_csr_matrix.hpp
Allocates an owning CSR matrix.
Parameters
Returns
raft::device_csr_matrix<ElementType, IndptrType, IndicesType, NZType>
Source header: raft/core/device_coo_matrix.hpp
Allocates an owning COO matrix.
Parameters
Returns
raft::device_coo_matrix<ElementType, RowType, ColType, NZType>