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

Detailed Description

Definition at line 136 of file sparse_column.h.

#include <sparse_column.h>

Public Member Functions

 RandomAccessSparseColumn (RowIndex num_rows)
 RandomAccessSparseColumn (const RandomAccessSparseColumn &)=delete
RandomAccessSparseColumnoperator= (const RandomAccessSparseColumn &)=delete
virtual ~RandomAccessSparseColumn ()
void Clear ()
void Resize (RowIndex num_rows)
void SetCoefficient (RowIndex row, Fractional value)
void AddToCoefficient (RowIndex row, Fractional value)
void PopulateFromSparseColumn (const SparseColumn &sparse_column)
void PopulateSparseColumn (SparseColumn *sparse_column) const
RowIndex GetNumberOfRows () const
Fractional GetCoefficient (RowIndex row) const

Constructor & Destructor Documentation

◆ RandomAccessSparseColumn() [1/2]

operations_research::glop::RandomAccessSparseColumn::RandomAccessSparseColumn ( RowIndex num_rows)
explicit

Definition at line 30 of file sparse_column.cc.

◆ RandomAccessSparseColumn() [2/2]

operations_research::glop::RandomAccessSparseColumn::RandomAccessSparseColumn ( const RandomAccessSparseColumn & )
delete

◆ ~RandomAccessSparseColumn()

operations_research::glop::RandomAccessSparseColumn::~RandomAccessSparseColumn ( )
virtualdefault

Member Function Documentation

◆ AddToCoefficient()

void operations_research::glop::RandomAccessSparseColumn::AddToCoefficient ( RowIndex row,
Fractional value )
inline

Definition at line 163 of file sparse_column.h.

◆ Clear()

void operations_research::glop::RandomAccessSparseColumn::Clear ( )

Definition at line 35 of file sparse_column.cc.

◆ GetCoefficient()

Fractional operations_research::glop::RandomAccessSparseColumn::GetCoefficient ( RowIndex row) const
inline

Definition at line 182 of file sparse_column.h.

◆ GetNumberOfRows()

RowIndex operations_research::glop::RandomAccessSparseColumn::GetNumberOfRows ( ) const
inline

Definition at line 178 of file sparse_column.h.

◆ operator=()

RandomAccessSparseColumn & operations_research::glop::RandomAccessSparseColumn::operator= ( const RandomAccessSparseColumn & )
delete

◆ PopulateFromSparseColumn()

void operations_research::glop::RandomAccessSparseColumn::PopulateFromSparseColumn ( const SparseColumn & sparse_column)

Definition at line 53 of file sparse_column.cc.

◆ PopulateSparseColumn()

void operations_research::glop::RandomAccessSparseColumn::PopulateSparseColumn ( SparseColumn * sparse_column) const

Definition at line 61 of file sparse_column.cc.

◆ Resize()

void operations_research::glop::RandomAccessSparseColumn::Resize ( RowIndex num_rows)

Definition at line 45 of file sparse_column.cc.

◆ SetCoefficient()

void operations_research::glop::RandomAccessSparseColumn::SetCoefficient ( RowIndex row,
Fractional value )
inline

Definition at line 156 of file sparse_column.h.


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