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.
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:
vec Internal sparse vector
begin Whether 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* (  )  [inline]
ScalarType& operator* (  )  const [inline]
self_type& operator++ (  )  [inline]
self_type& operator++ (  )  const [inline]
self_type& operator-- (  )  [inline]
self_type& operator-- (  )  const [inline]
bool operator== ( self_type  other  )  [inline]

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