CMR  1.3.0
Public Member Functions | List of all members
tu::SparseMatrix< V >::NonzeroIterator< Row > Struct Template Reference

Iterator for row- or column-wise iteration over the entries. More...

#include <matrix.hpp>

Public Member Functions

 NonzeroIterator (const SparseMatrix< V > &matrix, Index major)
 
 NonzeroIterator (const SparseMatrix< V > &matrix, Index major, int dummy)
 
 NonzeroIterator (const NonzeroIterator &other)
 Copy constructor. More...
 
const Nonzero operator* () const
 Returns the current entry. More...
 
void operator++ ()
 Advances to the next entry in the same major. More...
 
bool operator!= (const NonzeroIterator< Row > &other) const
 Compares two iterators for being not equal. More...
 

Detailed Description

template<typename V>
template<bool Row>
struct tu::SparseMatrix< V >::NonzeroIterator< Row >

Iterator for row- or column-wise iteration over the entries.

Constructor & Destructor Documentation

template<typename V>
template<bool Row>
tu::SparseMatrix< V >::NonzeroIterator< Row >::NonzeroIterator ( const SparseMatrix< V > &  matrix,
Index  major 
)
inline
template<typename V>
template<bool Row>
tu::SparseMatrix< V >::NonzeroIterator< Row >::NonzeroIterator ( const SparseMatrix< V > &  matrix,
Index  major,
int  dummy 
)
inline
template<typename V>
template<bool Row>
tu::SparseMatrix< V >::NonzeroIterator< Row >::NonzeroIterator ( const NonzeroIterator< Row > &  other)
inline

Copy constructor.

Member Function Documentation

template<typename V>
template<bool Row>
bool tu::SparseMatrix< V >::NonzeroIterator< Row >::operator!= ( const NonzeroIterator< Row > &  other) const
inline

Compares two iterators for being not equal.

template<typename V>
template<bool Row>
const Nonzero tu::SparseMatrix< V >::NonzeroIterator< Row >::operator* ( ) const
inline

Returns the current entry.

template<typename V>
template<bool Row>
void tu::SparseMatrix< V >::NonzeroIterator< Row >::operator++ ( )
inline

Advances to the next entry in the same major.


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