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

#include <scattered_vector.h>

Public Types

using Index = IndexType
 

Public Member Functions

Index index () const
 
Fractional coefficient () const
 

Protected Member Functions

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

Protected Attributes

EntryIndex i_
 
const Indexindex_
 
const Fractionalcoefficient_
 

Detailed Description

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

A class representing an entry of a scattered vector. The i-th nonzero element of the vector is assumed to be located at indices[i] and its value is coefficients[indices[i]], i.e., coefficients is a dense array.

Definition at line 30 of file scattered_vector.h.

Member Typedef Documentation

◆ Index

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

Definition at line 32 of file scattered_vector.h.

Constructor & Destructor Documentation

◆ ScatteredVectorEntry()

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

Definition at line 40 of file scattered_vector.h.

Member Function Documentation

◆ coefficient()

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

Definition at line 35 of file scattered_vector.h.

◆ index()

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

Definition at line 34 of file scattered_vector.h.

Member Data Documentation

◆ coefficient_

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

Definition at line 46 of file scattered_vector.h.

◆ i_

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

Definition at line 44 of file scattered_vector.h.

◆ index_

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

Definition at line 45 of file scattered_vector.h.


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