Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <flat_matrix.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
ConstRowsIterator (const T *ptr, size_t row, size_t row_size) | |
Implementation of the templates. | |
absl::Span< const T > | operator* () const |
ConstRowsIterator & | operator++ () |
bool | operator!= (const ConstRowsIterator &rhs) const |
To iterate over the rows of the FlatMatrix. Example: FlatMatrix<double> matrix(23, 45); for (absl::Span<const double> row : matrix.rows()) { LOG(INFO) << DUMP_VARS(row); }
Definition at line 65 of file flat_matrix.h.
T operations_research::FlatMatrix< T >::ConstRowsIterator::value_type |
Definition at line 67 of file flat_matrix.h.
operations_research::FlatMatrix< T >::ConstRowsIterator::ConstRowsIterator | ( | const T * | ptr, |
size_t | row, | ||
size_t | row_size ) |
Implementation of the templates.
Definition at line 98 of file flat_matrix.h.
bool operations_research::FlatMatrix< T >::ConstRowsIterator::operator!= | ( | const ConstRowsIterator & | rhs | ) | const |
Definition at line 111 of file flat_matrix.h.
|
inline |
Definition at line 69 of file flat_matrix.h.
FlatMatrix< T >::ConstRowsIterator & operations_research::FlatMatrix< T >::ConstRowsIterator::operator++ | ( | ) |
Definition at line 104 of file flat_matrix.h.