#include <AmbiVector.h>
Public Types | |
typedef NumTraits< Scalar >::Real | RealScalar |
typedef _Scalar | Scalar |
Public Member Functions | |
Index | index () const |
Iterator (const AmbiVector &vec, RealScalar epsilon=RealScalar(0.1)*NumTraits< RealScalar >::dummy_precision()) | |
operator bool () const | |
Iterator & | operator++ () |
Scalar | value () const |
Protected Attributes | |
Index | m_cachedIndex |
Scalar | m_cachedValue |
Index | m_currentEl |
RealScalar | m_epsilon |
bool | m_isDense |
const AmbiVector & | m_vector |
Iterator over the nonzero coefficients
Definition at line 290 of file AmbiVector.h.
typedef NumTraits<Scalar>::Real AmbiVector< _Scalar, _Index >::Iterator::RealScalar |
Definition at line 294 of file AmbiVector.h.
typedef _Scalar AmbiVector< _Scalar, _Index >::Iterator::Scalar |
Definition at line 293 of file AmbiVector.h.
AmbiVector< _Scalar, _Index >::Iterator::Iterator | ( | const AmbiVector & | vec, |
RealScalar | epsilon = RealScalar(0.1)*NumTraits<RealScalar>::dummy_precision() |
||
) | [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.
Index AmbiVector< _Scalar, _Index >::Iterator::index | ( | ) | const [inline] |
Definition at line 333 of file AmbiVector.h.
AmbiVector< _Scalar, _Index >::Iterator::operator bool | ( | ) | const [inline] |
Definition at line 336 of file AmbiVector.h.
Iterator& AmbiVector< _Scalar, _Index >::Iterator::operator++ | ( | ) | [inline] |
Definition at line 338 of file AmbiVector.h.
Scalar AmbiVector< _Scalar, _Index >::Iterator::value | ( | ) | const [inline] |
Definition at line 334 of file AmbiVector.h.
Index AmbiVector< _Scalar, _Index >::Iterator::m_cachedIndex [protected] |
Definition at line 373 of file AmbiVector.h.
Scalar AmbiVector< _Scalar, _Index >::Iterator::m_cachedValue [protected] |
Definition at line 374 of file AmbiVector.h.
Index AmbiVector< _Scalar, _Index >::Iterator::m_currentEl [protected] |
Definition at line 371 of file AmbiVector.h.
RealScalar AmbiVector< _Scalar, _Index >::Iterator::m_epsilon [protected] |
Definition at line 372 of file AmbiVector.h.
bool AmbiVector< _Scalar, _Index >::Iterator::m_isDense [protected] |
Definition at line 375 of file AmbiVector.h.
const AmbiVector& AmbiVector< _Scalar, _Index >::Iterator::m_vector [protected] |
Definition at line 370 of file AmbiVector.h.