#include <alpaqa/problem/sparsity.hpp>
Sparse coordinate list structure (COO).
Definition at line 55 of file sparsity.hpp.
Public Types | |
enum | Order { Unsorted = 0 , SortedByColsAndRows = 1 , SortedByColsOnly = 2 , SortedByRowsAndCols = 3 , SortedByRowsOnly = 4 } |
using | storage_index_t = StorageIndex |
using | index_vector_t = Eigen::VectorX< storage_index_t > |
using | index_vector_view_t = Eigen::Ref< const index_vector_t > |
using | index_vector_map_t = Eigen::Map< const index_vector_t > |
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 |
index_vector_view_t | row_indices = index_vector_map_t{nullptr, 0} |
index_vector_view_t | col_indices = index_vector_map_t{nullptr, 0} |
Order | order = Unsorted |
storage_index_t | first_index = 0 |
Zero for C/C++, one for Fortran. | |
using storage_index_t = StorageIndex |
Definition at line 57 of file sparsity.hpp.
using index_vector_t = Eigen::VectorX<storage_index_t> |
Definition at line 58 of file sparsity.hpp.
using index_vector_view_t = Eigen::Ref<const index_vector_t> |
Definition at line 59 of file sparsity.hpp.
using index_vector_map_t = Eigen::Map<const index_vector_t> |
Definition at line 60 of file sparsity.hpp.
enum Order |
Definition at line 65 of file sparsity.hpp.
|
inline |
Get the number of structurally nonzero elements.
Definition at line 85 of file sparsity.hpp.
length_t rows = 0 |
Definition at line 61 of file sparsity.hpp.
length_t cols = 0 |
Definition at line 61 of file sparsity.hpp.
Symmetry symmetry = Symmetry::Unsymmetric |
Definition at line 62 of file sparsity.hpp.
index_vector_view_t row_indices = index_vector_map_t{nullptr, 0} |
Definition at line 63 of file sparsity.hpp.
index_vector_view_t col_indices = index_vector_map_t{nullptr, 0} |
Definition at line 64 of file sparsity.hpp.
Order order = Unsorted |
Definition at line 81 of file sparsity.hpp.
storage_index_t first_index = 0 |
Zero for C/C++, one for Fortran.
Definition at line 82 of file sparsity.hpp.