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

Detailed Description

Definition at line 66 of file sparse_matrix.h.

#include <sparse_matrix.h>

Public Member Functions

bool set (VariableId first, VariableId second, double value)
double get (VariableId first, VariableId second) const
void Delete (VariableId variable)
std::vector< VariableIdVariables () const
std::vector< VariableIdRelatedVariables (VariableId variable) const
std::vector< std::pair< VariableId, double > > Terms (VariableId variable) const
std::vector< std::tuple< VariableId, VariableId, double > > Terms () const
void Clear ()
int64_t nonzeros () const
int64_t impl_detail_matrix_storage_size () const
const absl::flat_hash_map< std::pair< VariableId, VariableId >, double > & values () const
SparseDoubleMatrixProto Proto () const
SparseDoubleMatrixProto Update (const absl::flat_hash_set< VariableId > &deleted_variables, absl::Span< const VariableId > new_variables, const absl::flat_hash_set< std::pair< VariableId, VariableId > > &dirty) const

Member Function Documentation

◆ Clear()

void operations_research::math_opt::SparseSymmetricMatrix::Clear ( )

Definition at line 134 of file sparse_matrix.cc.

◆ Delete()

void operations_research::math_opt::SparseSymmetricMatrix::Delete ( VariableId variable)

Definition at line 32 of file sparse_matrix.cc.

◆ get()

double operations_research::math_opt::SparseSymmetricMatrix::get ( VariableId first,
VariableId second ) const
inline

Definition at line 340 of file sparse_matrix.h.

◆ impl_detail_matrix_storage_size()

int64_t operations_research::math_opt::SparseSymmetricMatrix::impl_detail_matrix_storage_size ( ) const
inline

Definition at line 113 of file sparse_matrix.h.

◆ nonzeros()

int64_t operations_research::math_opt::SparseSymmetricMatrix::nonzeros ( ) const
inline

Definition at line 109 of file sparse_matrix.h.

◆ Proto()

SparseDoubleMatrixProto operations_research::math_opt::SparseSymmetricMatrix::Proto ( ) const

Definition at line 140 of file sparse_matrix.cc.

◆ RelatedVariables()

std::vector< VariableId > operations_research::math_opt::SparseSymmetricMatrix::RelatedVariables ( VariableId variable) const

Definition at line 47 of file sparse_matrix.cc.

◆ set()

bool operations_research::math_opt::SparseSymmetricMatrix::set ( VariableId first,
VariableId second,
double value )
inline

Definition at line 308 of file sparse_matrix.h.

◆ Terms() [1/2]

std::vector< std::tuple< VariableId, VariableId, double > > operations_research::math_opt::SparseSymmetricMatrix::Terms ( ) const

Definition at line 92 of file sparse_matrix.cc.

◆ Terms() [2/2]

std::vector< std::pair< VariableId, double > > operations_research::math_opt::SparseSymmetricMatrix::Terms ( VariableId variable) const

Definition at line 76 of file sparse_matrix.cc.

◆ Update()

SparseDoubleMatrixProto operations_research::math_opt::SparseSymmetricMatrix::Update ( const absl::flat_hash_set< VariableId > & deleted_variables,
absl::Span< const VariableId > new_variables,
const absl::flat_hash_set< std::pair< VariableId, VariableId > > & dirty ) const

Definition at line 165 of file sparse_matrix.cc.

◆ values()

const absl::flat_hash_map< std::pair< VariableId, VariableId >, double > & operations_research::math_opt::SparseSymmetricMatrix::values ( ) const
inline

Definition at line 118 of file sparse_matrix.h.

◆ Variables()

std::vector< VariableId > operations_research::math_opt::SparseSymmetricMatrix::Variables ( ) const

Definition at line 61 of file sparse_matrix.cc.


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