ViennaCL - The Vienna Computing Library  1.5.1
Public Member Functions
amg_sparsevector_iterator< InternalType > Class Template Reference

Defines an iterator for the sparse vector type. More...

#include <amg_base.hpp>

Public Member Functions

 amg_sparsevector_iterator (InternalType &vec, bool begin=true)
 The constructor. More...
 
bool operator== (self_type other)
 
bool operator!= (self_type other)
 
self_typeoperator++ () const
 
self_typeoperator++ ()
 
self_typeoperator-- () const
 
self_typeoperator-- ()
 
ScalarType & operator* () const
 
ScalarType & operator* ()
 
unsigned int index () const
 
unsigned int index ()
 

Detailed Description

template<typename InternalType>
class viennacl::linalg::detail::amg::amg_sparsevector_iterator< InternalType >

Defines an iterator for the sparse vector type.

Constructor & Destructor Documentation

amg_sparsevector_iterator ( InternalType &  vec,
bool  begin = true 
)
inline

The constructor.

Parameters
vecInternal sparse vector
beginWhether the iterator starts at the beginning or end of vec

Member Function Documentation

unsigned int index ( ) const
inline
unsigned int index ( )
inline
bool operator!= ( self_type  other)
inline
ScalarType& operator* ( ) const
inline
ScalarType& operator* ( )
inline
self_type& operator++ ( ) const
inline
self_type& operator++ ( )
inline
self_type& operator-- ( ) const
inline
self_type& operator-- ( )
inline
bool operator== ( self_type  other)
inline

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