ViennaCL - The Vienna Computing Library  1.5.1
Public Types | Public Member Functions
sparse_vector< ScalarType > Class Template Reference

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. More...
 
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 ()
 

Detailed Description

template<typename ScalarType>
class viennacl::linalg::detail::spai::sparse_vector< ScalarType >

Represents sparse vector based on std::map<unsigned int, ScalarType>

Member Typedef Documentation

typedef std::map<unsigned int, ScalarType>::const_iterator const_iterator
typedef std::map<unsigned int, ScalarType>::iterator iterator

Constructor & Destructor Documentation

sparse_vector ( )
inline

Member Function Documentation

const_iterator begin ( ) const
inline
iterator begin ( )
inline
void clear ( )
inline
const_iterator end ( ) const
inline
iterator end ( )
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.


The documentation for this class was generated from the following file: