Skip to main content

Module sparse

Module sparse 

Source
Expand description

Sparse matrix types: CSR (Compressed Sparse Row) and CSC (Compressed Sparse Column).

Designed for NLP/recommender workloads with 50K+ features and >99% zeros. Provides efficient row-oriented (CSR) and column-oriented (CSC) access, plus conversion between formats.

Structsยง

CscMatrix
Compressed Sparse Column matrix.
CsrMatrix
Compressed Sparse Row matrix.
SparseCol
View into a single column of a CscMatrix.
SparseRow
View into a single row of a CsrMatrix.