|
guanaqo
1.0.0-alpha.24
Utilities for scientific software
|
#include <guanaqo/linalg/sparsity.hpp>
Sparse coordinate list structure (COO).
Definition at line 70 of file sparsity.hpp.
Public Types | |
| enum | Order : uint8_t { Unsorted = 0 , SortedByColsAndRows = 1 , SortedByColsOnly = 2 , SortedByRowsAndCols = 3 , SortedByRowsOnly = 4 } |
| using | index_t = Index |
Public Member Functions | |
| length_t | nnz () const |
| Get the number of structurally nonzero elements. | |
Public Attributes | |
| length_t | rows = 0 |
| length_t | cols = 0 |
| Symmetry | symmetry = Symmetry::Unsymmetric |
| std::span< const index_t > | row_indices {} |
| std::span< const index_t > | col_indices {} |
| Order | order = Unsorted |
| index_t | first_index = 0 |
| Zero for C/C++, one for Fortran. | |
| using guanaqo::linalg::sparsity::SparseCOO< Index >::index_t = Index |
Definition at line 71 of file sparsity.hpp.
| enum guanaqo::linalg::sparsity::SparseCOO::Order : uint8_t |
Definition at line 76 of file sparsity.hpp.
|
inlinenodiscard |
Get the number of structurally nonzero elements.
Definition at line 96 of file sparsity.hpp.
| length_t guanaqo::linalg::sparsity::SparseCOO< Index >::rows = 0 |
Definition at line 72 of file sparsity.hpp.
| length_t guanaqo::linalg::sparsity::SparseCOO< Index >::cols = 0 |
Definition at line 72 of file sparsity.hpp.
| Symmetry guanaqo::linalg::sparsity::SparseCOO< Index >::symmetry = Symmetry::Unsymmetric |
Definition at line 73 of file sparsity.hpp.
| std::span<const index_t> guanaqo::linalg::sparsity::SparseCOO< Index >::row_indices {} |
Definition at line 74 of file sparsity.hpp.
| std::span<const index_t> guanaqo::linalg::sparsity::SparseCOO< Index >::col_indices {} |
Definition at line 75 of file sparsity.hpp.
| Order guanaqo::linalg::sparsity::SparseCOO< Index >::order = Unsorted |
Definition at line 92 of file sparsity.hpp.
| index_t guanaqo::linalg::sparsity::SparseCOO< Index >::first_index = 0 |
Zero for C/C++, one for Fortran.
Definition at line 93 of file sparsity.hpp.