Represents sparse vector based on std::map<unsigned int, ScalarType> More...
#include <sparse_vector.hpp>
Public Types | |
typedef std::map< unsigned int, ScalarType >::iterator | iterator |
typedef std::map< unsigned int, ScalarType >::const_iterator | const_iterator |
Public Member Functions | |
sparse_vector () | |
ScalarType & | operator[] (const unsigned int ind) |
Set the index of the vector in the original matrix May only be called once. | |
void | clear () |
const_iterator | find (const unsigned int var) const |
iterator | find (const unsigned int var) |
const_iterator | begin () const |
const_iterator | end () const |
iterator | begin () |
iterator | end () |
Represents sparse vector based on std::map<unsigned int, ScalarType>
typedef std::map<unsigned int, ScalarType>::const_iterator const_iterator |
sparse_vector | ( | ) | [inline] |
const_iterator begin | ( | ) | const [inline] |
iterator begin | ( | ) | [inline] |
void clear | ( | ) | [inline] |
iterator end | ( | ) | [inline] |
const_iterator end | ( | ) | const [inline] |
const_iterator find | ( | const unsigned int | var | ) | const [inline] |
iterator find | ( | const unsigned int | var | ) | [inline] |
ScalarType& operator[] | ( | const unsigned int | ind | ) | [inline] |
Set the index of the vector in the original matrix May only be called once.