Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <sparse.h>
Public Member Functions | |
ConstView (const CompactSparseMatrix *matrix) | |
::util::IntegerRange< EntryIndex > | Column (ColIndex col) const |
Fractional | EntryCoefficient (EntryIndex i) const |
RowIndex | EntryRow (EntryIndex i) const |
EntryIndex | ColumnNumEntries (ColIndex col) const |
Fractional | ColumnScalarProduct (ColIndex col, DenseRow::ConstView vector) const |
When iteration performance matter, getting a ConstView allows the compiler to do better aliasing analysis and not re-read vectors address all the time.
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |