Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <sparse.h>
Public Member Functions | |
CompactSparseMatrixView (const CompactSparseMatrix *compact_matrix, const RowToColMapping *basis) | |
CompactSparseMatrixView (const CompactSparseMatrix *compact_matrix, const std::vector< ColIndex > *columns) | |
bool | IsEmpty () const |
Same behavior as the SparseMatrix functions above. | |
RowIndex | num_rows () const |
ColIndex | num_cols () const |
ColumnView | column (ColIndex col) const |
EntryIndex | num_entries () const |
Fractional | ComputeOneNorm () const |
Fractional | ComputeInfinityNorm () const |
A matrix view of the basis columns of a CompactSparseMatrix, with basis specified as a RowToColMapping. This class does not take ownership of the underlying matrix or basis, and thus they must outlive this class (and keep the same address in memory).
|
inline |
|
inline |
|
inline |
Fractional operations_research::glop::CompactSparseMatrixView::ComputeInfinityNorm | ( | ) | const |
Fractional operations_research::glop::CompactSparseMatrixView::ComputeOneNorm | ( | ) | const |
|
inline |
Same behavior as the SparseMatrix functions above.
|
inline |
EntryIndex operations_research::glop::CompactSparseMatrixView::num_entries | ( | ) | const |
|
inline |