OR-Tools  9.6
ScatteredRow

Detailed Description

Definition at line 197 of file scattered_vector.h.

Public Member Functions

Fractional operator[] (ColIndex index) const
 
Fractionaloperator[] (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 ()
 
void RepopulateSparseMask ()
 
void ClearNonZerosIfTooDense (double ratio_for_using_dense_representation)
 
void ClearNonZerosIfTooDense ()
 
size_t NumNonZerosEstimate () const
 

Public Attributes

StrictITIVector< ColIndex, Fractionalvalues
 
bool non_zeros_are_sorted
 
std::vector< ColIndex > non_zeros
 
StrictITIVector< ColIndex, bool > is_non_zero
 

Static Public Attributes

constexpr static const double kDefaultRatioForUsingDenseIteration
 

Member Function Documentation

◆ Add()

void Add ( ColIndex  index,
Fractional  value 
)
inlineinherited

Definition at line 97 of file scattered_vector.h.

◆ begin()

ScatteredRowIterator begin ( ) const
inlineinherited

Definition at line 85 of file scattered_vector.h.

◆ ClearNonZerosIfTooDense() [1/2]

void ClearNonZerosIfTooDense ( )
inlineinherited

Definition at line 158 of file scattered_vector.h.

◆ ClearNonZerosIfTooDense() [2/2]

void ClearNonZerosIfTooDense ( double  ratio_for_using_dense_representation)
inlineinherited

Definition at line 151 of file scattered_vector.h.

◆ ClearSparseMask()

void ClearSparseMask ( )
inlineinherited

Definition at line 131 of file scattered_vector.h.

◆ end()

ScatteredRowIterator end ( ) const
inlineinherited

Definition at line 89 of file scattered_vector.h.

◆ NumNonZerosEstimate()

size_t NumNonZerosEstimate ( ) const
inlineinherited

Definition at line 164 of file scattered_vector.h.

◆ operator[]() [1/2]

Fractional& operator[] ( ColIndex  index)
inlineinherited

Definition at line 80 of file scattered_vector.h.

◆ operator[]() [2/2]

Fractional operator[] ( ColIndex  index) const
inlineinherited

Definition at line 79 of file scattered_vector.h.

◆ RepopulateSparseMask()

void RepopulateSparseMask ( )
inlineinherited

Definition at line 144 of file scattered_vector.h.

◆ ShouldUseDenseIteration() [1/2]

bool ShouldUseDenseIteration ( ) const
inlineinherited

Definition at line 126 of file scattered_vector.h.

◆ ShouldUseDenseIteration() [2/2]

bool ShouldUseDenseIteration ( double  ratio_for_using_dense_representation) const
inlineinherited

Definition at line 118 of file scattered_vector.h.

◆ SortNonZerosIfNeeded()

void SortNonZerosIfNeeded ( )
inlineinherited

Definition at line 109 of file scattered_vector.h.

Member Data Documentation

◆ is_non_zero

StrictITIVector<ColIndex , bool> is_non_zero
inherited

Definition at line 66 of file scattered_vector.h.

◆ kDefaultRatioForUsingDenseIteration

constexpr static const double kDefaultRatioForUsingDenseIteration
staticconstexprinherited

Definition at line 77 of file scattered_vector.h.

◆ non_zeros

std::vector<ColIndex > non_zeros
inherited

Definition at line 61 of file scattered_vector.h.

◆ non_zeros_are_sorted

bool non_zeros_are_sorted
inherited

Definition at line 60 of file scattered_vector.h.

◆ values

StrictITIVector<ColIndex , Fractional> values
inherited

Definition at line 56 of file scattered_vector.h.


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