Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::glop::SparseVectorEntry< IndexType > Class Template Reference

Detailed Description

template<typename IndexType>
class operations_research::glop::SparseVectorEntry< IndexType >

Definition at line 417 of file sparse_vector.h.

#include <sparse_vector.h>

Public Types

using Index = IndexType

Public Member Functions

Index index () const
Fractional coefficient () const

Protected Member Functions

 SparseVectorEntry (const Index *indices, const Fractional *coefficients, EntryIndex i)

Protected Attributes

EntryIndex i_
const Indexindex_
const Fractionalcoefficient_

Member Typedef Documentation

◆ Index

template<typename IndexType>
using operations_research::glop::SparseVectorEntry< IndexType >::Index = IndexType

Definition at line 419 of file sparse_vector.h.

Constructor & Destructor Documentation

◆ SparseVectorEntry()

template<typename IndexType>
operations_research::glop::SparseVectorEntry< IndexType >::SparseVectorEntry ( const Index * indices,
const Fractional * coefficients,
EntryIndex i )
inlineprotected

Definition at line 433 of file sparse_vector.h.

Member Function Documentation

◆ coefficient()

template<typename IndexType>
Fractional operations_research::glop::SparseVectorEntry< IndexType >::coefficient ( ) const
inline

Definition at line 422 of file sparse_vector.h.

◆ index()

template<typename IndexType>
Index operations_research::glop::SparseVectorEntry< IndexType >::index ( ) const
inline

Definition at line 421 of file sparse_vector.h.

Member Data Documentation

◆ coefficient_

template<typename IndexType>
const Fractional* operations_research::glop::SparseVectorEntry< IndexType >::coefficient_
protected

Definition at line 448 of file sparse_vector.h.

◆ i_

template<typename IndexType>
EntryIndex operations_research::glop::SparseVectorEntry< IndexType >::i_
protected

Definition at line 438 of file sparse_vector.h.

◆ index_

template<typename IndexType>
const Index* operations_research::glop::SparseVectorEntry< IndexType >::index_
protected

Definition at line 447 of file sparse_vector.h.


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