Google OR-Tools
v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
List of all members
operations_research::glop::ScatteredRow Struct Reference
#include <
scattered_vector.h
>
Inheritance diagram for operations_research::glop::ScatteredRow:
Additional Inherited Members
Public Member Functions inherited from
operations_research::glop::ScatteredVector< ColIndex, ScatteredRowIterator >
Fractional
operator[]
(ColIndex
index
) const
Fractional
&
operator[]
(ColIndex
index
)
ScatteredRowIterator
begin
() const
ScatteredRowIterator
end
() const
void
Add
(ColIndex
index
,
Fractional
value
)
void
SortNonZerosIfNeeded
()
bool
ShouldUseDenseIteration
(double ratio_for_using_dense_representation) const
bool
ShouldUseDenseIteration
() const
void
ClearSparseMask
()
Efficiently clears the is_non_zero vector.
void
RepopulateSparseMask
()
Update the is_non_zero vector to be consistent with the non_zeros vector.
void
ClearNonZerosIfTooDense
(double ratio_for_using_dense_representation)
void
ClearNonZerosIfTooDense
()
size_t
NumNonZerosEstimate
() const
Public Attributes inherited from
operations_research::glop::ScatteredVector< ColIndex, ScatteredRowIterator >
StrictITIVector
< ColIndex,
Fractional
>
values
bool
non_zeros_are_sorted
std::vector< ColIndex >
non_zeros
StrictITIVector
< ColIndex, bool >
is_non_zero
Static Public Attributes inherited from
operations_research::glop::ScatteredVector< ColIndex, ScatteredRowIterator >
static constexpr const double
kDefaultRatioForUsingDenseIteration
Detailed Description
Definition at line
195
of file
scattered_vector.h
.
The documentation for this struct was generated from the following file:
ortools/lp_data/
scattered_vector.h
operations_research
glop
ScatteredRow
Generated by
1.12.0