Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <sparse.h>
Public Member Functions | |
MatrixView ()=default | |
MatrixView (const SparseMatrix &matrix) | |
void | PopulateFromMatrix (const SparseMatrix &matrix) |
Takes all the columns of the given matrix. | |
void | PopulateFromMatrixPair (const SparseMatrix &matrix_a, const SparseMatrix &matrix_b) |
void | PopulateFromBasis (const MatrixView &matrix, const RowToColMapping &basis) |
Takes only the columns of the given matrix that belongs to the given basis. | |
bool | IsEmpty () const |
Same behavior as the SparseMatrix functions above. | |
RowIndex | num_rows () const |
ColIndex | num_cols () const |
const SparseColumn & | column (ColIndex col) const |
EntryIndex | num_entries () const |
Fractional | ComputeOneNorm () const |
Fractional | ComputeInfinityNorm () const |
A matrix constructed from a list of already existing SparseColumn. This class does not take ownership of the underlying columns, and thus they must outlive this class (and keep the same address in memory).
|
default |
|
inlineexplicit |
|
inline |
Fractional operations_research::glop::MatrixView::ComputeInfinityNorm | ( | ) | const |
Fractional operations_research::glop::MatrixView::ComputeOneNorm | ( | ) | const |
|
inline |
Same behavior as the SparseMatrix functions above.
|
inline |
EntryIndex operations_research::glop::MatrixView::num_entries | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |