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

#include <sparse_row.h>

Inheritance diagram for operations_research::glop::SparseRowEntry:
operations_research::glop::SparseVectorEntry< ColIndex >

Public Member Functions

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

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

Specialization of SparseVectorEntry and SparseVectorIterator for the SparseRow class. In addition to index(), it also provides col() for better readability on the client side.

Definition at line 26 of file sparse_row.h.

Constructor & Destructor Documentation

◆ SparseRowEntry()

operations_research::glop::SparseRowEntry::SparseRowEntry ( const ColIndex * indices,
const Fractional * coefficients,
EntryIndex i )
inlineprotected

Definition at line 32 of file sparse_row.h.

Member Function Documentation

◆ col()

ColIndex operations_research::glop::SparseRowEntry::col ( ) const
inline

Returns the row of the current entry.

Definition at line 29 of file sparse_row.h.


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