Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
NOTE(user): T=bool is not yet supported (the [] operator doesn't work). More...
#include <flat_matrix.h>
Classes | |
struct | ConstRows |
class | ConstRowsIterator |
Public Member Functions | |
FlatMatrix () | |
FlatMatrix (size_t num_rows, size_t num_cols) | |
FlatMatrix (size_t num_rows, size_t num_cols, const T &elem) | |
size_t | num_rows () const |
size_t | num_cols () const |
absl::Span< T > | operator[] (size_t row) |
absl::Span< const T > | operator[] (size_t row) const |
absl::Span< T > | all_elements () |
All the elements of the FlatMatrix. | |
absl::Span< const T > | all_elements () const |
ConstRows | rows () |
NOTE(user): T=bool is not yet supported (the [] operator doesn't work).
Definition at line 32 of file flat_matrix.h.
|
inline |
Definition at line 34 of file flat_matrix.h.
|
inline |
Definition at line 35 of file flat_matrix.h.
|
inline |
Definition at line 39 of file flat_matrix.h.
|
inline |
All the elements of the FlatMatrix.
Definition at line 55 of file flat_matrix.h.
|
inline |
Definition at line 56 of file flat_matrix.h.
|
inline |
Definition at line 45 of file flat_matrix.h.
|
inline |
Definition at line 44 of file flat_matrix.h.
|
inline |
Definition at line 47 of file flat_matrix.h.
|
inline |
Definition at line 50 of file flat_matrix.h.
|
inline |
Definition at line 85 of file flat_matrix.h.