Public Types | Public Member Functions | Protected Attributes | List of all members
AmbiVector< _Scalar >::Iterator Class Reference

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
 
Iteratoroperator++ ()
 
Scalar value () const
 

Protected Attributes

int m_cachedIndex
 
Scalar m_cachedValue
 
int m_currentEl
 
RealScalar m_epsilon
 
bool m_isDense
 
const AmbiVector & m_vector
 

Detailed Description

template<typename _Scalar>
class Eigen::AmbiVector< _Scalar >::Iterator

Iterator over the nonzero coefficients

Constructor & Destructor Documentation

Iterator ( const AmbiVector &  vec,
RealScalar  epsilon = RealScalar(0.1)*precision<RealScalar>() 
)
inline

Default constructor

Parameters
vecthe vector on which we iterate
epsilonthe minimal value used to prune zero coefficients. In practice, all coefficients having a magnitude smaller than epsilon are skipped.

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