OR-Tools  9.6
GlpkSparseVector

Detailed Description

Definition at line 63 of file glpk_sparse_vector.h.

Public Member Functions

 GlpkSparseVector (const int capacity)
 
int capacity () const
 
int size () const
 
const int * indices () const
 
const double * values () const
 
void Clear ()
 
std::optional< double > Get (int index) const
 
void Set (int index, double value)
 
void Load (std::function< int(int *indices, double *values)> getter)
 

Constructor & Destructor Documentation

◆ GlpkSparseVector()

GlpkSparseVector ( const int  capacity)
explicit

Definition at line 23 of file glpk_sparse_vector.cc.

Member Function Documentation

◆ capacity()

int capacity ( ) const
inline

Definition at line 73 of file glpk_sparse_vector.h.

◆ Clear()

void Clear ( )

Definition at line 31 of file glpk_sparse_vector.cc.

◆ Get()

std::optional< double > Get ( int  index) const
inline

Definition at line 161 of file glpk_sparse_vector.h.

◆ indices()

const int* indices ( ) const
inline

Definition at line 81 of file glpk_sparse_vector.h.

◆ Load()

void Load ( std::function< int(int *indices, double *values)>  getter)

Definition at line 47 of file glpk_sparse_vector.cc.

◆ Set()

void Set ( int  index,
double  value 
)
inline

Definition at line 177 of file glpk_sparse_vector.h.

◆ size()

int size ( ) const
inline

Definition at line 76 of file glpk_sparse_vector.h.

◆ values()

const double* values ( ) const
inline

Definition at line 86 of file glpk_sparse_vector.h.


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