1 #ifndef VIENNACL_LINALG_DETAIL_SPAI_SPARSE_VECTOR_HPP
2 #define VIENNACL_LINALG_DETAIL_SPAI_SPARSE_VECTOR_HPP
51 template <
typename ScalarType>
54 typedef typename std::map<unsigned int, ScalarType>::iterator
iterator;
55 typedef typename std::map<unsigned int, ScalarType>::const_iterator
const_iterator;
99 std::map<unsigned int, ScalarType> v_;
std::map< unsigned int, ScalarType >::const_iterator const_iterator
Definition: sparse_vector.hpp:55
iterator find(const unsigned int var)
Definition: sparse_vector.hpp:75
const_iterator end() const
Definition: sparse_vector.hpp:83
const_iterator find(const unsigned int var) const
Definition: sparse_vector.hpp:71
Represents sparse vector based on std::map<unsigned int, ScalarType>
Definition: sparse_vector.hpp:52
iterator begin()
Definition: sparse_vector.hpp:88
const_iterator begin() const
Definition: sparse_vector.hpp:79
ScalarType & operator[](const unsigned int ind)
Set the index of the vector in the original matrix May only be called once.
Definition: sparse_vector.hpp:62
void clear()
Definition: sparse_vector.hpp:67
sparse_vector()
Definition: sparse_vector.hpp:56
std::map< unsigned int, ScalarType >::iterator iterator
Definition: sparse_vector.hpp:54
iterator end()
Definition: sparse_vector.hpp:92