|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Non-owning view with index remapping via permutation vectors. More...
#include <map_view.hpp>
Public Types | |
| using | value_type = typename Matrix::value_type |
| using | size_type = typename Matrix::size_type |
| using | const_reference = value_type |
| using | reference = value_type |
Public Member Functions | |
| map_view (const Matrix &m, const std::vector< size_type > &row_map, const std::vector< size_type > &col_map) | |
| value_type | operator() (size_type r, size_type c) const |
| size_type | num_rows () const |
| size_type | num_cols () const |
| size_type | size () const |
| const Matrix & | base () const |
Non-owning view with index remapping via permutation vectors.
Every map entry must index the matrix, checked once at construction in every build (#826); an entry may repeat. Element access (r, c) is checked when bounds_checking is on, as dense2D's is.
| using mtl::mat::view::map_view< Matrix >::const_reference = value_type |
| using mtl::mat::view::map_view< Matrix >::reference = value_type |
| using mtl::mat::view::map_view< Matrix >::size_type = typename Matrix::size_type |
| using mtl::mat::view::map_view< Matrix >::value_type = typename Matrix::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |