| idol
    A C++ Framework for Optimization | 


| Public Types | |
| using | iterator = typename map_t::iterator | 
| using | const_iterator = typename map_t::const_iterator | 
| Public Member Functions | |
| SparseVector (const IndexT &t_index, const ValueT &t_value) | |
| SparseVector (const SparseVector &)=default | |
| SparseVector (SparseVector &&)=default | |
| SparseVector & | operator= (const SparseVector &)=default | 
| SparseVector & | operator= (SparseVector &&) noexcept=default | 
| 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 () | 
| iterator | end () | 
| const_iterator | begin () const | 
| const_iterator | end () const | 
| const_iterator | cbegin () const | 
| const_iterator | cend () const | 
| SparseVector & | merge_without_conflict (const SparseVector &t_vec) | 
Definition at line 66 of file SparseVector.h.
| using idol::SparseVector< IndexT, ValueT >::const_iterator = typename map_t::const_iterator | 
Definition at line 128 of file SparseVector.h.
| using idol::SparseVector< IndexT, ValueT >::iterator = typename map_t::iterator | 
Definition at line 127 of file SparseVector.h.
| 
 | inline | 
Definition at line 87 of file SparseVector.h.
| 
 | inline | 
Definition at line 130 of file SparseVector.h.
| 
 | inline | 
Definition at line 134 of file SparseVector.h.
| 
 | inline | 
Definition at line 138 of file SparseVector.h.
| 
 | inline | 
Definition at line 140 of file SparseVector.h.
| 
 | inline | 
Definition at line 119 of file SparseVector.h.
| 
 | inline | 
Definition at line 107 of file SparseVector.h.
| 
 | inline | 
Definition at line 132 of file SparseVector.h.
| 
 | inline | 
Definition at line 136 of file SparseVector.h.
| const ValueT & idol::SparseVector< IndexT, ValueT >::get | ( | const IndexT & | t_index1 | ) | const | 
Definition at line 271 of file SparseVector.h.
| 
 | inline | 
Definition at line 109 of file SparseVector.h.
| 
 | virtual | 
Definition at line 226 of file SparseVector.h.
| idol::SparseVector< IndexT, ValueT > & idol::SparseVector< IndexT, ValueT >::merge_without_conflict | ( | const SparseVector< IndexT, ValueT > & | t_vec | ) | 
Definition at line 258 of file SparseVector.h.
| 
 | virtual | 
Definition at line 206 of file SparseVector.h.
| 
 | virtual | 
Definition at line 237 of file SparseVector.h.
| idol::SparseVector< IndexT, ValueT > idol::SparseVector< IndexT, ValueT >::operator- | ( | ) | const | 
Definition at line 149 of file SparseVector.h.
| 
 | virtual | 
Definition at line 182 of file SparseVector.h.
| 
 | virtual | 
Definition at line 161 of file SparseVector.h.
| 
 | inline | 
Definition at line 117 of file SparseVector.h.
| 
 | inline | 
Definition at line 121 of file SparseVector.h.
| void idol::SparseVector< IndexT, ValueT >::set | ( | const IndexT & | t_index, | 
| const ValueT & | t_value | ||
| ) | 
Definition at line 283 of file SparseVector.h.
| 
 | inline | 
Definition at line 105 of file SparseVector.h.