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

◆ NonzeroIterator() [1/3]

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

◆ NonzeroIterator() [2/3]

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

◆ NonzeroIterator() [3/3]

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

Copy constructor.

Member Function Documentation

◆ operator!=()

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.

◆ operator*()

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

Returns the current entry.

◆ operator++()

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: