Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::glop::SparseColumnEntry Class Reference

#include <sparse_column.h>

Inheritance diagram for operations_research::glop::SparseColumnEntry:
operations_research::glop::SparseVectorEntry< RowIndex >

Public Member Functions

RowIndex row () const
 Returns the row of the current entry.
 
- Public Member Functions inherited from operations_research::glop::SparseVectorEntry< RowIndex >
Index index () const
 
Fractional coefficient () const
 

Protected Member Functions

 SparseColumnEntry (const RowIndex *indices, const Fractional *coefficients, EntryIndex i)
 
- Protected Member Functions inherited from operations_research::glop::SparseVectorEntry< RowIndex >
 SparseVectorEntry (const Index *indices, const Fractional *coefficients, EntryIndex i)
 

Additional Inherited Members

- Public Types inherited from operations_research::glop::SparseVectorEntry< RowIndex >
using Index
 
- Protected Attributes inherited from operations_research::glop::SparseVectorEntry< RowIndex >
EntryIndex i_
 The index of the sparse vector entry represented by this object.
 
const Indexindex_
 
const Fractionalcoefficient_
 

Detailed Description

Specialization of SparseVectorEntry and SparseColumnIterator for the SparseColumn class. In addition to index(), it also provides row() for better readability on the client side.

Definition at line 32 of file sparse_column.h.

Constructor & Destructor Documentation

◆ SparseColumnEntry()

operations_research::glop::SparseColumnEntry::SparseColumnEntry ( const RowIndex * indices,
const Fractional * coefficients,
EntryIndex i )
inlineprotected

Definition at line 38 of file sparse_column.h.

Member Function Documentation

◆ row()

RowIndex operations_research::glop::SparseColumnEntry::row ( ) const
inline

Returns the row of the current entry.

Definition at line 35 of file sparse_column.h.


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