OR-Tools  8.2
ColumnView

Detailed Description

Definition at line 65 of file sparse_column.h.

Public Types

typedef SparseColumnEntry Entry
 
typedef VectorIterator< EntryIterator
 

Public Member Functions

 ColumnView (EntryIndex num_entries, const RowIndex *rows, const Fractional *const coefficients)
 
 ColumnView (const SparseColumn &column)
 
EntryIndex num_entries () const
 
Fractional EntryCoefficient (EntryIndex i) const
 
Fractional GetFirstCoefficient () const
 
RowIndex EntryRow (EntryIndex i) const
 
RowIndex GetFirstRow () const
 
Iterator begin () const
 
Iterator end () const
 
Fractional LookUpCoefficient (RowIndex index) const
 
bool IsEmpty () const
 

Member Typedef Documentation

◆ Entry

Definition at line 72 of file sparse_column.h.

◆ Iterator

Definition at line 73 of file sparse_column.h.

Constructor & Destructor Documentation

◆ ColumnView() [1/2]

ColumnView ( EntryIndex  num_entries,
const RowIndex *  rows,
const Fractional *const  coefficients 
)
inline

Definition at line 75 of file sparse_column.h.

◆ ColumnView() [2/2]

ColumnView ( const SparseColumn column)
inlineexplicit

Definition at line 78 of file sparse_column.h.

Member Function Documentation

◆ begin()

Iterator begin ( ) const
inline

Definition at line 92 of file sparse_column.h.

◆ end()

Iterator end ( ) const
inline

Definition at line 96 of file sparse_column.h.

◆ EntryCoefficient()

Fractional EntryCoefficient ( EntryIndex  i) const
inline

Definition at line 83 of file sparse_column.h.

◆ EntryRow()

RowIndex EntryRow ( EntryIndex  i) const
inline

Definition at line 89 of file sparse_column.h.

◆ GetFirstCoefficient()

Fractional GetFirstCoefficient ( ) const
inline

Definition at line 86 of file sparse_column.h.

◆ GetFirstRow()

RowIndex GetFirstRow ( ) const
inline

Definition at line 90 of file sparse_column.h.

◆ IsEmpty()

bool IsEmpty ( ) const
inline

Definition at line 114 of file sparse_column.h.

◆ LookUpCoefficient()

Fractional LookUpCoefficient ( RowIndex  index) const
inline

Definition at line 100 of file sparse_column.h.

◆ num_entries()

EntryIndex num_entries ( ) const
inline

Definition at line 82 of file sparse_column.h.


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