Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::GlpkSparseVector Class Reference

Detailed Description

Definition at line 64 of file glpk_sparse_vector.h.

#include <glpk_sparse_vector.h>

Public Member Functions

 GlpkSparseVector (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()

operations_research::math_opt::GlpkSparseVector::GlpkSparseVector ( int capacity)
explicit

Definition at line 24 of file glpk_sparse_vector.cc.

Member Function Documentation

◆ capacity()

int operations_research::math_opt::GlpkSparseVector::capacity ( ) const
inline

Definition at line 74 of file glpk_sparse_vector.h.

◆ Clear()

void operations_research::math_opt::GlpkSparseVector::Clear ( )

Definition at line 32 of file glpk_sparse_vector.cc.

◆ Get()

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

Definition at line 164 of file glpk_sparse_vector.h.

◆ indices()

const int * operations_research::math_opt::GlpkSparseVector::indices ( ) const
inline

Definition at line 82 of file glpk_sparse_vector.h.

◆ Load()

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

Definition at line 48 of file glpk_sparse_vector.cc.

◆ Set()

void operations_research::math_opt::GlpkSparseVector::Set ( int index,
double value )
inline

Definition at line 180 of file glpk_sparse_vector.h.

◆ size()

int operations_research::math_opt::GlpkSparseVector::size ( ) const
inline

Definition at line 77 of file glpk_sparse_vector.h.

◆ values()

const double * operations_research::math_opt::GlpkSparseVector::values ( ) const
inline

Definition at line 87 of file glpk_sparse_vector.h.


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