#include <CouenneMatrix.hpp>
Classes | |
| struct | compare_scalars |
Public Member Functions | |
| CouenneSparseVector () | |
| ~CouenneSparseVector () | |
| Destructor. More... | |
| CouenneSparseVector (const CouenneSparseVector &rhs) | |
| CouenneSparseVector & | operator= (const CouenneSparseVector &rhs) |
| CouenneSparseVector * | clone () |
| void | add_element (int index, expression *elem) |
| Insertion into vector. More... | |
| void | print () const |
| Pretty print. More... | |
| const std::set< CouenneScalar *, compare_scalars > & | getElements () |
| returns elements of vector as (ordered) set More... | |
| double | operator* (const CouenneSparseVector &factor) const |
| vector * vector (dot product) More... | |
| CouenneSparseVector & | operator* (const CouenneExprMatrix &post) const |
| vector * matrix More... | |
| double | multiply_thres (const CouenneSparseVector &v2, double thres) const |
| stops multiplication if above threshold More... | |
Protected Attributes | |
| std::set< CouenneScalar *, compare_scalars > | elem_ |
Definition at line 66 of file CouenneMatrix.hpp.
|
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.
|
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.
|
inline |
returns elements of vector as (ordered) set
Definition at line 93 of file CouenneMatrix.hpp.
|
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.
|
protected |
Definition at line 78 of file CouenneMatrix.hpp.
1.8.5