|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Offset decorator for sparse matrix inserters. More...
#include <shifted_inserter.hpp>
Public Member Functions | |
| template<typename Matrix> | |
| shifted_inserter (Matrix &matrix, size_type slot_size, size_type row_offset=0, size_type col_offset=0) | |
| Construct shifted inserter owning a base inserter. | |
| row_proxy | operator[] (size_type row) |
| void | set_row_offset (size_type off) |
| void | set_col_offset (size_type off) |
| size_type | get_row_offset () const |
| size_type | get_col_offset () const |
Offset decorator for sparse matrix inserters.
Wraps a base inserter and shifts row/col indices by configurable offsets.
|
inline |
Construct shifted inserter owning a base inserter.
| matrix | The sparse matrix to insert into |
| slot_size | Slots per row for the base inserter |
| row_offset | Offset added to row indices |
| col_offset | Offset added to column indices |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |