Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#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 Index * | index_ |
const Fractional * | coefficient_ |
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.
using operations_research::glop::ScatteredVectorEntry< IndexType >::Index = IndexType |
Definition at line 32 of file scattered_vector.h.
|
inlineprotected |
Definition at line 40 of file scattered_vector.h.
|
inline |
Definition at line 35 of file scattered_vector.h.
|
inline |
Definition at line 34 of file scattered_vector.h.
|
protected |
Definition at line 46 of file scattered_vector.h.
|
protected |
Definition at line 44 of file scattered_vector.h.
|
protected |
Definition at line 45 of file scattered_vector.h.