#include <AmbiVector.h>
Public Types | |
typedef NumTraits< Scalar >::Real | RealScalar |
typedef _Scalar | Scalar |
Public Member Functions | |
int | index () const |
Iterator (const AmbiVector &vec, RealScalar epsilon=RealScalar(0.1)*precision< RealScalar >()) | |
operator bool () const | |
Iterator & | operator++ () |
Scalar | value () const |
Protected Attributes | |
int | m_cachedIndex |
Scalar | m_cachedValue |
int | m_currentEl |
RealScalar | m_epsilon |
bool | m_isDense |
const AmbiVector & | m_vector |
Private Member Functions | |
Iterator & | operator= (const Iterator &) |
Iterator over the nonzero coefficients
Definition at line 290 of file AmbiVector.h.
typedef NumTraits<Scalar>::Real AmbiVector< _Scalar >::Iterator::RealScalar |
Definition at line 294 of file AmbiVector.h.
typedef _Scalar AmbiVector< _Scalar >::Iterator::Scalar |
Definition at line 293 of file AmbiVector.h.
AmbiVector< _Scalar >::Iterator::Iterator | ( | const AmbiVector & | vec, | |
RealScalar | epsilon = RealScalar(0.1)*precision<RealScalar>() | |||
) | [inline] |
Default constructor
vec | the vector on which we iterate | |
epsilon | the minimal value used to prune zero coefficients. In practice, all coefficients having a magnitude smaller than epsilon are skipped. |
Definition at line 302 of file AmbiVector.h.
int AmbiVector< _Scalar >::Iterator::index | ( | ) | const [inline] |
Definition at line 330 of file AmbiVector.h.
AmbiVector< _Scalar >::Iterator::operator bool | ( | ) | const [inline] |
Definition at line 333 of file AmbiVector.h.
Iterator& AmbiVector< _Scalar >::Iterator::operator++ | ( | ) | [inline] |
Definition at line 335 of file AmbiVector.h.
Iterator& AmbiVector< _Scalar >::Iterator::operator= | ( | const Iterator & | ) | [private] |
Scalar AmbiVector< _Scalar >::Iterator::value | ( | ) | const [inline] |
Definition at line 331 of file AmbiVector.h.
int AmbiVector< _Scalar >::Iterator::m_cachedIndex [protected] |
Definition at line 370 of file AmbiVector.h.
Scalar AmbiVector< _Scalar >::Iterator::m_cachedValue [protected] |
Definition at line 371 of file AmbiVector.h.
int AmbiVector< _Scalar >::Iterator::m_currentEl [protected] |
Definition at line 368 of file AmbiVector.h.
RealScalar AmbiVector< _Scalar >::Iterator::m_epsilon [protected] |
Definition at line 369 of file AmbiVector.h.
bool AmbiVector< _Scalar >::Iterator::m_isDense [protected] |
Definition at line 372 of file AmbiVector.h.
const AmbiVector& AmbiVector< _Scalar >::Iterator::m_vector [protected] |
Definition at line 367 of file AmbiVector.h.