OR-Tools  9.6
FlatMatrix< T >

Detailed Description

template<typename T>
class operations_research::FlatMatrix< T >

Definition at line 32 of file flat_matrix.h.

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
 

Constructor & Destructor Documentation

◆ FlatMatrix() [1/3]

FlatMatrix ( )
inline

Definition at line 34 of file flat_matrix.h.

◆ FlatMatrix() [2/3]

FlatMatrix ( size_t  num_rows,
size_t  num_cols 
)
inline

Definition at line 35 of file flat_matrix.h.

◆ FlatMatrix() [3/3]

FlatMatrix ( size_t  num_rows,
size_t  num_cols,
const T &  elem 
)
inline

Definition at line 39 of file flat_matrix.h.

Member Function Documentation

◆ num_cols()

size_t num_cols ( ) const
inline

Definition at line 45 of file flat_matrix.h.

◆ num_rows()

size_t num_rows ( ) const
inline

Definition at line 44 of file flat_matrix.h.

◆ operator[]() [1/2]

absl::Span<T> operator[] ( size_t  row)
inline

Definition at line 47 of file flat_matrix.h.

◆ operator[]() [2/2]

absl::Span<const T> operator[] ( size_t  row) const
inline

Definition at line 50 of file flat_matrix.h.


The documentation for this class was generated from the following file: