#include <CouenneMatrix.hpp>
Classes | |
| struct | compare_scalars |
Public Member Functions | |
| CouenneSparseVector () | |
| ~CouenneSparseVector () | |
| Destructor. | |
| CouenneSparseVector (const CouenneSparseVector &rhs) | |
| CouenneSparseVector & | operator= (const CouenneSparseVector &rhs) |
| CouenneSparseVector * | clone () |
| void | add_element (int index, expression *elem) |
| Insertion into vector. | |
| void | print () const |
| Pretty print. | |
| const std::set< CouenneScalar *, compare_scalars > & | getElements () |
| returns elements of vector as (ordered) set | |
| double | operator* (const CouenneSparseVector &factor) const |
| vector * vector (dot product) | |
| CouenneSparseVector & | operator* (const CouenneExprMatrix &post) const |
| vector * matrix | |
| double | multiply_thres (const CouenneSparseVector &v2, double thres) const |
| stops multiplication if above threshold | |
Protected Attributes | |
| std::set< CouenneScalar *, compare_scalars > | elem_ |
Definition at line 66 of file CouenneMatrix.hpp.
| Couenne::CouenneSparseVector::CouenneSparseVector | ( | ) | [inline] |
Definition at line 82 of file CouenneMatrix.hpp.
| CouenneSparseVector::~CouenneSparseVector | ( | ) |
Destructor.
Definition at line 213 of file CouenneMatrix.cpp.
| CouenneSparseVector::CouenneSparseVector | ( | const CouenneSparseVector & | rhs | ) |
Definition at line 22 of file CouenneMatrix.cpp.
| CouenneSparseVector & CouenneSparseVector::operator= | ( | const CouenneSparseVector & | rhs | ) |
Definition at line 33 of file CouenneMatrix.cpp.
| CouenneSparseVector* Couenne::CouenneSparseVector::clone | ( | ) | [inline] |
Definition at line 87 of file CouenneMatrix.hpp.
| void CouenneSparseVector::add_element | ( | int | index, | |
| expression * | elem | |||
| ) |
Insertion into vector.
Definition at line 80 of file CouenneMatrix.cpp.
| void CouenneSparseVector::print | ( | ) | const |
Pretty print.
Definition at line 228 of file CouenneMatrix.cpp.
| const std::set<CouenneScalar *, compare_scalars>& Couenne::CouenneSparseVector::getElements | ( | ) | [inline] |
returns elements of vector as (ordered) set
Definition at line 93 of file CouenneMatrix.hpp.
| double CouenneSparseVector::operator* | ( | const CouenneSparseVector & | factor | ) | const [inline] |
| CouenneSparseVector & CouenneSparseVector::operator* | ( | const CouenneExprMatrix & | post | ) | const |
vector * matrix
Definition at line 151 of file CouenneMatrix.cpp.
| double CouenneSparseVector::multiply_thres | ( | const CouenneSparseVector & | v2, | |
| double | thres | |||
| ) | const |
stops multiplication if above threshold
Threshold dot product.
Definition at line 124 of file CouenneMatrix.cpp.
std::set<CouenneScalar *, compare_scalars> Couenne::CouenneSparseVector::elem_ [protected] |
Definition at line 78 of file CouenneMatrix.hpp.
1.6.1