OSVR-Core
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Eigen::internal::AmbiVector< _Scalar, _Index > Class Template Reference

Classes

class  Iterator
 Iterator over the nonzero coefficients. More...
 
struct  ListEl
 

Public Types

typedef _Scalar Scalar
 
typedef _Index Index
 
typedef NumTraits< Scalar >::Real RealScalar
 

Public Member Functions

 AmbiVector (Index size)
 
void init (double estimatedDensity)
 
void init (int mode)
 
Index nonZeros () const
 
void setBounds (Index start, Index end)
 Specifies a sub-vector to work on.
 
void setZero ()
 Set all coefficients of current subvector to zero.
 
void restart ()
 Must be called whenever we might perform a write access with an index smaller than the previous one. More...
 
Scalar & coeffRef (Index i)
 
Scalar & coeff (Index i)
 
void resize (Index size)
 
Index size () const
 

Protected Member Functions

void reallocate (Index size)
 
void reallocateSparse ()
 

Protected Attributes

Scalar * m_buffer
 
Scalar m_zero
 
Index m_size
 
Index m_start
 
Index m_end
 
Index m_allocatedSize
 
Index m_allocatedElements
 
Index m_mode
 
Index m_llStart
 
Index m_llCurrent
 
Index m_llSize
 

Member Function Documentation

§ nonZeros()

template<typename _Scalar , typename _Index >
_Index Eigen::internal::AmbiVector< _Scalar, _Index >::nonZeros ( ) const
Returns
the number of non zeros in the current sub vector

§ restart()

template<typename _Scalar , typename _Index >
void Eigen::internal::AmbiVector< _Scalar, _Index >::restart ( )

Must be called whenever we might perform a write access with an index smaller than the previous one.

Don't worry, this function is extremely cheap.


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