|
| constexpr | BasicMatrix ()=default |
| constexpr | BasicMatrix (T *data, size_t rows, size_t cols) |
template<class U>
requires (std::same_as<T, const Cost> && std::same_as<U, Cost>) |
| constexpr | BasicMatrix (const BasicMatrix< U > &other) |
| constexpr T & | operator[] (size_t row, size_t col) const |
| constexpr size_t | rows () const |
| constexpr size_t | cols () const |
| constexpr size_t | size () const |
| constexpr bool | row_major () const |
| | Whether rows are contiguous, which also holds for a transposed single row or column.
|
| constexpr BasicMatrix | transposed () const |
| constexpr const BasicMatrix & | operator+= (BasicMatrix< const Cost > rhs) const |
| constexpr void | copy_from (BasicMatrix< const Cost > src) const |
| constexpr void | erase_rows (fe::View< size_t > rows) & |
| | Erases the rows in rows, which must be sorted and distinct.
|
| constexpr void | erase_cols (fe::View< size_t > cols) & |
| | Erases the columns in cols, which must be sorted and distinct.
|
Iteration covers the storage in memory order, which is row-major only if row_major().
|
| constexpr T * | data () const |
| constexpr T * | begin () const |
| constexpr T * | end () const |
| constexpr T * | row (size_t row) const |
template<class T>
requires std::same_as<std::remove_cv_t<T>,
Cost>
class pbqp::BasicMatrix< T >
A view of a cost matrix over row-major storage owned elsewhere; transposed() views the same storage column-major.
Definition at line 73 of file graph.h.