|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
ELLPACK sparse matrix: each row stores up to max_width non-zeros. More...
#include <ell_matrix.hpp>
Public Types | |
| using | param_type = Parameters |
| using | value_type = Value |
| using | size_type = typename Parameters::size_type |
| using | const_reference = const Value& |
| using | reference = Value& |
Public Member Functions | |
| ell_matrix () | |
| Default: empty. | |
| ell_matrix (size_type nrows, size_type ncols, size_type max_width) | |
| Empty nrows x ncols with given max row width. | |
| ell_matrix (const compressed2D< Value, Parameters > &csr) | |
| Construct from compressed2D (auto-detect max row width). | |
| value_type | operator() (size_type r, size_type c) const |
| size_type | num_rows () const |
| size_type | num_cols () const |
| size_type | size () const |
| size_type | max_width () const |
| const std::vector< size_type > & | ref_indices () const |
| const std::vector< Value > & | ref_data () const |
Static Public Attributes | |
| static constexpr size_type | invalid = size_type(-1) |
ELLPACK sparse matrix: each row stores up to max_width non-zeros.
Two flat arrays of size nrows * max_width: indices and values. Unused slots have index == size_type(-1).
| using mtl::mat::ell_matrix< Value, Parameters >::const_reference = const Value& |
| using mtl::mat::ell_matrix< Value, Parameters >::param_type = Parameters |
| using mtl::mat::ell_matrix< Value, Parameters >::reference = Value& |
| using mtl::mat::ell_matrix< Value, Parameters >::size_type = typename Parameters::size_type |
| using mtl::mat::ell_matrix< Value, Parameters >::value_type = Value |
|
inline |
Default: empty.
|
inline |
Empty nrows x ncols with given max row width.
|
inlineexplicit |
Construct from compressed2D (auto-detect max row width).
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
staticconstexpr |