ViennaCL - The Vienna Computing Library
1.5.1
|
A non-const iterator for sparse matrices of type std::vector<std::map<SizeType, SCALARTYPE> > More...
#include <adapter.hpp>
Public Types | |
typedef self_type | iterator1 |
typedef self_type | iterator2 |
typedef vcl_size_t | size_type |
Public Member Functions | |
sparse_matrix_adapted_iterator (std::vector< std::map< SizeType, SCALARTYPE > > &mat, int i, int j) | |
SCALARTYPE & | operator* (void) |
self_type & | operator++ (void) |
self_type | operator++ (int) |
self_type | operator+= (size_type offset) |
bool | operator== (self_type const &other) const |
bool | operator!= (self_type const &other) const |
size_type | index1 () const |
size_type | index2 () const |
sparse_matrix_adapted_iterator < SCALARTYPE, SizeType,!is_iterator1 > | begin () const |
sparse_matrix_adapted_iterator < SCALARTYPE, SizeType,!is_iterator1 > | end () const |
A non-const iterator for sparse matrices of type std::vector<std::map<SizeType, SCALARTYPE> >
The iterator behaves like ublas iterators. Attention: Iteration along first columns and then rows via .begin() is untested! Reverse iterators are missing!
SCALARTYPE | either float or double |
is_iterator1 | if true, this iterator iterates along increasing row indices, otherwise along increasiong column indices |
typedef vcl_size_t size_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |