gko::matrix#

Matrix formats and matrix-like operators. Every type below is a LinOp: composable through apply, transformable through clone and copy, and shareable across executors. For background on the format trade-offs see the Matrix formats concept page.

Sparse formats#

  • Csr: compressed sparse row.

  • Coo: coordinate format.

  • Ell: equal-length rows.

  • Sellp: sliced ELL with padding (SELL-P).

  • Hybrid: ELL + COO fall-back.

  • Fbcsr: fixed-size block CSR.

  • SparsityCsr: sparsity pattern only.

Dense#

  • Dense: row-major dense matrix.

Device views#

  • view::dense, view::csr, …: non-owning, trivially copyable views of Dense, Coo, Csr, Ell, Sellp and Hybrid storage for use inside device kernels and for passing matrices between libraries; obtained with get_device_view() / get_const_device_view().

Utility operators#