|
idol
A C++ Framework for Optimization
|
#include <LinExpr.h>


Public Types | |
| using | iterator = typename map_t::iterator |
| using | const_iterator = typename map_t::const_iterator |
Public Member Functions | |
| LinExpr (KeyT t_key) | |
| LinExpr (SparseVector< KeyT, ValueT > t_vector) | |
| LinExpr (const ValueT &t_factor, const KeyT &t_key) | |
| LinExpr (ValueT &&t_factor, const KeyT &t_key) | |
| LinExpr (const LinExpr< KeyT, ValueT > &)=default | |
| LinExpr (LinExpr< KeyT, ValueT > &&)=default | |
| LinExpr & | operator= (const LinExpr< KeyT, ValueT > &) noexcept=default |
| LinExpr & | operator= (LinExpr< KeyT, ValueT > &&) noexcept=default |
| LinExpr & | operator+= (const LinExpr< KeyT, ValueT > &t_rhs) |
| LinExpr & | operator+= (const KeyT &t_rhs) |
| LinExpr & | operator-= (const LinExpr< KeyT, ValueT > &t_rhs) |
| LinExpr & | operator-= (const KeyT &t_rhs) |
| virtual SparseVector & | operator+= (const SparseVector &t_vector) |
| virtual SparseVector & | operator-= (const SparseVector &t_vector) |
| virtual SparseVector & | operator*= (std::conditional_t< std::is_arithmetic_v< ValueT >, ValueT, double > t_scalar) |
| virtual SparseVector & | operator/= (std::conditional_t< std::is_arithmetic_v< ValueT >, ValueT, double > t_scalar) |
| SparseVector | operator- () const |
| unsigned int | size () const |
| bool | empty () const |
| bool | has_index (const IndexT &t_index) const |
| const ValueT & | get (const IndexT &t_index1) const |
| void | set (const IndexT &t_index, const ValueT &t_value) |
| virtual bool | is_zero (double t_tolerance) const |
| void | remove (const IndexT &t_index) |
| void | clear () |
| void | reserve (unsigned int t_capacity) |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| SparseVector & | merge_without_conflict (const SparseVector &t_vec) |
Static Public Attributes | |
| static LinExpr< KeyT, ValueT > | Zero {} |
| KeyT | the class representing keys |
|
inherited |
Definition at line 128 of file SparseVector.h.
|
inherited |
Definition at line 127 of file SparseVector.h.
|
inline |
|
inlineinherited |
Definition at line 130 of file SparseVector.h.
|
inlineinherited |
Definition at line 134 of file SparseVector.h.
|
inlineinherited |
Definition at line 138 of file SparseVector.h.
|
inlineinherited |
Definition at line 140 of file SparseVector.h.
|
inlineinherited |
Definition at line 119 of file SparseVector.h.
|
inlineinherited |
Definition at line 107 of file SparseVector.h.
|
inlineinherited |
Definition at line 132 of file SparseVector.h.
|
inlineinherited |
Definition at line 136 of file SparseVector.h.
|
inherited |
Definition at line 271 of file SparseVector.h.
|
inlineinherited |
Definition at line 109 of file SparseVector.h.
|
virtualinherited |
Definition at line 226 of file SparseVector.h.
|
inherited |
Definition at line 258 of file SparseVector.h.
|
virtualinherited |
Definition at line 206 of file SparseVector.h.
| idol::LinExpr< KeyT, ValueT > & idol::LinExpr< KeyT, ValueT >::operator+= | ( | const KeyT & | t_rhs | ) |
|
virtualinherited |
Definition at line 237 of file SparseVector.h.
|
inherited |
Definition at line 149 of file SparseVector.h.
| idol::LinExpr< KeyT, ValueT > & idol::LinExpr< KeyT, ValueT >::operator-= | ( | const KeyT & | t_rhs | ) |
| idol::LinExpr< KeyT, ValueT > & idol::LinExpr< KeyT, ValueT >::operator-= | ( | const LinExpr< KeyT, ValueT > & | t_rhs | ) |
|
virtualinherited |
Definition at line 182 of file SparseVector.h.
|
virtualinherited |
Definition at line 161 of file SparseVector.h.
|
inlineinherited |
Definition at line 117 of file SparseVector.h.
|
inlineinherited |
Definition at line 121 of file SparseVector.h.
|
inherited |
Definition at line 283 of file SparseVector.h.
|
inlineinherited |
Definition at line 105 of file SparseVector.h.
|
static |