Hasty Briefsbeta

Bilingual

Sparse Matrix Library with Compressed Row Storage

9 months ago
  • #CRS Format
  • #C++
  • #Sparse Matrix
  • SparseMatrix is a template class in C++ for sparse matrices using CRS format.
  • Matrix dimensions and element type are specified during initialization.
  • Supports operations like set, get, multiply, add, subtract, and compare.
  • Invalid coordinates or dimensions throw specific exceptions.
  • Matrices are immutable; operations return new matrices.
  • Custom element types must implement specific operators and constructors.
  • Basic output streaming is supported for the matrix.