|
ViennaCL - The Vienna Computing Library
1.5.1
|
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] |
| void clear | ( | ) | [inline] |
| const_iterator end | ( | ) | const [inline] |
| const_iterator find | ( | const unsigned int | var | ) | const [inline] |
| ScalarType& operator[] | ( | const unsigned int | ind | ) | [inline] |
Set the index of the vector in the original matrix May only be called once.
1.7.6.1