Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

AmbiVector< _Scalar, _Index > Class Template Reference

#include <AmbiVector.h>

List of all members.

Classes

class  Iterator
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)
void setZero ()
void restart ()
ScalarcoeffRef (Index i)
Scalarcoeff (Index i)
 ~AmbiVector ()
void resize (Index size)
Index size () const

Protected Member Functions

void reallocate (Index size)
void reallocateSparse ()

Protected Attributes

Scalarm_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

template<typename _Scalar, typename _Index>
class AmbiVector< _Scalar, _Index >


Member Typedef Documentation

template<typename _Scalar , typename _Index >
typedef _Index AmbiVector< _Scalar, _Index >::Index
template<typename _Scalar , typename _Index >
typedef NumTraits<Scalar>::Real AmbiVector< _Scalar, _Index >::RealScalar
template<typename _Scalar , typename _Index >
typedef _Scalar AmbiVector< _Scalar, _Index >::Scalar

Constructor & Destructor Documentation

template<typename _Scalar , typename _Index >
AmbiVector< _Scalar, _Index >::AmbiVector ( Index  size  )  [inline]
template<typename _Scalar , typename _Index >
AmbiVector< _Scalar, _Index >::~AmbiVector (  )  [inline]

Member Function Documentation

template<typename _Scalar , typename _Index >
Scalar& AmbiVector< _Scalar, _Index >::coeff ( Index  i  ) 
template<typename _Scalar , typename _Index >
Scalar& AmbiVector< _Scalar, _Index >::coeffRef ( Index  i  ) 
template<typename _Scalar , typename _Index >
void AmbiVector< _Scalar, _Index >::init ( int  mode  ) 
template<typename _Scalar , typename _Index >
void AmbiVector< _Scalar, _Index >::init ( double  estimatedDensity  ) 
template<typename _Scalar , typename _Index >
_Index AmbiVector< _Scalar, _Index >::nonZeros (  )  const
Returns:
the number of non zeros in the current sub vector
template<typename _Scalar , typename _Index >
void AmbiVector< _Scalar, _Index >::reallocate ( Index  size  )  [inline, protected]
template<typename _Scalar , typename _Index >
void AmbiVector< _Scalar, _Index >::reallocateSparse (  )  [inline, protected]
template<typename _Scalar , typename _Index >
void AmbiVector< _Scalar, _Index >::resize ( Index  size  )  [inline]
template<typename _Scalar , typename _Index >
void 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.

template<typename _Scalar , typename _Index >
void AmbiVector< _Scalar, _Index >::setBounds ( Index  start,
Index  end 
) [inline]

Specifies a sub-vector to work on

template<typename _Scalar , typename _Index >
void AmbiVector< _Scalar, _Index >::setZero (  ) 

Set all coefficients of current subvector to zero

template<typename _Scalar , typename _Index >
Index AmbiVector< _Scalar, _Index >::size (  )  const [inline]

Member Data Documentation

template<typename _Scalar , typename _Index >
Index AmbiVector< _Scalar, _Index >::m_allocatedElements [protected]
template<typename _Scalar , typename _Index >
Index AmbiVector< _Scalar, _Index >::m_allocatedSize [protected]
template<typename _Scalar , typename _Index >
Scalar* AmbiVector< _Scalar, _Index >::m_buffer [protected]
template<typename _Scalar , typename _Index >
Index AmbiVector< _Scalar, _Index >::m_end [protected]
template<typename _Scalar , typename _Index >
Index AmbiVector< _Scalar, _Index >::m_llCurrent [protected]
template<typename _Scalar , typename _Index >
Index AmbiVector< _Scalar, _Index >::m_llSize [protected]
template<typename _Scalar , typename _Index >
Index AmbiVector< _Scalar, _Index >::m_llStart [protected]
template<typename _Scalar , typename _Index >
Index AmbiVector< _Scalar, _Index >::m_mode [protected]
template<typename _Scalar , typename _Index >
Index AmbiVector< _Scalar, _Index >::m_size [protected]
template<typename _Scalar , typename _Index >
Index AmbiVector< _Scalar, _Index >::m_start [protected]
template<typename _Scalar , typename _Index >
Scalar AmbiVector< _Scalar, _Index >::m_zero [protected]

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