OR-Tools  9.6
ColumnView

Detailed Description

Definition at line 67 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 74 of file sparse_column.h.

◆ Iterator

Definition at line 75 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 77 of file sparse_column.h.

◆ ColumnView() [2/2]

ColumnView ( const SparseColumn column)
inlineexplicit

Definition at line 80 of file sparse_column.h.

Member Function Documentation

◆ begin()

Iterator begin ( ) const
inline

Definition at line 94 of file sparse_column.h.

◆ end()

Iterator end ( ) const
inline

Definition at line 98 of file sparse_column.h.

◆ EntryCoefficient()

Fractional EntryCoefficient ( EntryIndex  i) const
inline

Definition at line 85 of file sparse_column.h.

◆ EntryRow()

RowIndex EntryRow ( EntryIndex  i) const
inline

Definition at line 91 of file sparse_column.h.

◆ GetFirstCoefficient()

Fractional GetFirstCoefficient ( ) const
inline

Definition at line 88 of file sparse_column.h.

◆ GetFirstRow()

RowIndex GetFirstRow ( ) const
inline

Definition at line 92 of file sparse_column.h.

◆ IsEmpty()

bool IsEmpty ( ) const
inline

Definition at line 116 of file sparse_column.h.

◆ LookUpCoefficient()

Fractional LookUpCoefficient ( RowIndex  index) const
inline

Definition at line 102 of file sparse_column.h.

◆ num_entries()

EntryIndex num_entries ( ) const
inline

Definition at line 84 of file sparse_column.h.


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