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 _Index Index
typedef NumTraits< Scalar >::Real RealScalar
typedef _Scalar Scalar

Public Member Functions

 AmbiVector (Index size)
Scalarcoeff (Index i)
ScalarcoeffRef (Index i)
void init (double estimatedDensity)
void init (int mode)
Index nonZeros () const
void resize (Index size)
void restart ()
void setBounds (Index start, Index end)
void setZero ()
Index size () const
 ~AmbiVector ()

Protected Member Functions

void reallocate (Index size)
void reallocateSparse ()

Protected Attributes

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

Detailed Description

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

Definition at line 34 of file AmbiVector.h.


Member Typedef Documentation

template<typename _Scalar, typename _Index>
typedef _Index AmbiVector< _Scalar, _Index >::Index

Definition at line 38 of file AmbiVector.h.

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

Definition at line 39 of file AmbiVector.h.

template<typename _Scalar, typename _Index>
typedef _Scalar AmbiVector< _Scalar, _Index >::Scalar

Definition at line 37 of file AmbiVector.h.


Constructor & Destructor Documentation

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

Definition at line 41 of file AmbiVector.h.

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

Definition at line 63 of file AmbiVector.h.


Member Function Documentation

template<typename _Scalar , typename _Index >
_Scalar & AmbiVector< _Scalar, _Index >::coeff ( Index  i)

Definition at line 262 of file AmbiVector.h.

template<typename _Scalar , typename _Index >
_Scalar & AmbiVector< _Scalar, _Index >::coeffRef ( Index  i)

Definition at line 193 of file AmbiVector.h.

template<typename _Scalar , typename _Index >
void AmbiVector< _Scalar, _Index >::init ( double  estimatedDensity)

Definition at line 145 of file AmbiVector.h.

template<typename _Scalar , typename _Index >
void AmbiVector< _Scalar, _Index >::init ( int  mode)

Definition at line 154 of file AmbiVector.h.

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

Definition at line 136 of file AmbiVector.h.

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

Definition at line 76 of file AmbiVector.h.

template<typename _Scalar, typename _Index>
void AmbiVector< _Scalar, _Index >::reallocateSparse ( ) [inline, protected]

Definition at line 97 of file AmbiVector.h.

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

Definition at line 65 of file AmbiVector.h.

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.

Definition at line 170 of file AmbiVector.h.

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

Specifies a sub-vector to work on

Definition at line 53 of file AmbiVector.h.

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

Set all coefficients of current subvector to zero

Definition at line 177 of file AmbiVector.h.

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

Definition at line 72 of file AmbiVector.h.


Member Data Documentation

template<typename _Scalar, typename _Index>
Index AmbiVector< _Scalar, _Index >::m_allocatedElements [protected]

Definition at line 125 of file AmbiVector.h.

template<typename _Scalar, typename _Index>
Index AmbiVector< _Scalar, _Index >::m_allocatedSize [protected]

Definition at line 124 of file AmbiVector.h.

template<typename _Scalar, typename _Index>
Scalar* AmbiVector< _Scalar, _Index >::m_buffer [protected]

Definition at line 119 of file AmbiVector.h.

template<typename _Scalar, typename _Index>
Index AmbiVector< _Scalar, _Index >::m_end [protected]

Definition at line 123 of file AmbiVector.h.

template<typename _Scalar, typename _Index>
Index AmbiVector< _Scalar, _Index >::m_llCurrent [protected]

Definition at line 130 of file AmbiVector.h.

template<typename _Scalar, typename _Index>
Index AmbiVector< _Scalar, _Index >::m_llSize [protected]

Definition at line 131 of file AmbiVector.h.

template<typename _Scalar, typename _Index>
Index AmbiVector< _Scalar, _Index >::m_llStart [protected]

Definition at line 129 of file AmbiVector.h.

template<typename _Scalar, typename _Index>
Index AmbiVector< _Scalar, _Index >::m_mode [protected]

Definition at line 126 of file AmbiVector.h.

template<typename _Scalar, typename _Index>
Index AmbiVector< _Scalar, _Index >::m_size [protected]

Definition at line 121 of file AmbiVector.h.

template<typename _Scalar, typename _Index>
Index AmbiVector< _Scalar, _Index >::m_start [protected]

Definition at line 122 of file AmbiVector.h.

template<typename _Scalar, typename _Index>
Scalar AmbiVector< _Scalar, _Index >::m_zero [protected]

Definition at line 120 of file AmbiVector.h.


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


libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:34:09