#include <AmbiVector.h>
Classes | |
| class | Iterator |
| struct | ListEl |
Public Types | |
| typedef _Index | Index |
| typedef NumTraits< Scalar >::Real | RealScalar |
| typedef _Scalar | Scalar |
Public Member Functions | |
| AmbiVector (Index size) | |
| Scalar & | coeff (Index i) |
| Scalar & | coeffRef (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 |
| Scalar * | m_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 |
Definition at line 34 of file AmbiVector.h.
| typedef _Index AmbiVector< _Scalar, _Index >::Index |
Definition at line 38 of file AmbiVector.h.
| typedef NumTraits<Scalar>::Real AmbiVector< _Scalar, _Index >::RealScalar |
Definition at line 39 of file AmbiVector.h.
| typedef _Scalar AmbiVector< _Scalar, _Index >::Scalar |
Definition at line 37 of file AmbiVector.h.
| AmbiVector< _Scalar, _Index >::AmbiVector | ( | Index | size | ) | [inline] |
Definition at line 41 of file AmbiVector.h.
| AmbiVector< _Scalar, _Index >::~AmbiVector | ( | ) | [inline] |
Definition at line 63 of file AmbiVector.h.
| _Scalar & AmbiVector< _Scalar, _Index >::coeff | ( | Index | i | ) |
Definition at line 262 of file AmbiVector.h.
| _Scalar & AmbiVector< _Scalar, _Index >::coeffRef | ( | Index | i | ) |
Definition at line 193 of file AmbiVector.h.
| void AmbiVector< _Scalar, _Index >::init | ( | double | estimatedDensity | ) |
Definition at line 145 of file AmbiVector.h.
| void AmbiVector< _Scalar, _Index >::init | ( | int | mode | ) |
Definition at line 154 of file AmbiVector.h.
| _Index AmbiVector< _Scalar, _Index >::nonZeros | ( | ) | const |
Definition at line 136 of file AmbiVector.h.
| void AmbiVector< _Scalar, _Index >::reallocate | ( | Index | size | ) | [inline, protected] |
Definition at line 76 of file AmbiVector.h.
| void AmbiVector< _Scalar, _Index >::reallocateSparse | ( | ) | [inline, protected] |
Definition at line 97 of file AmbiVector.h.
| void AmbiVector< _Scalar, _Index >::resize | ( | Index | size | ) | [inline] |
Definition at line 65 of file AmbiVector.h.
| 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.
| 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.
| void AmbiVector< _Scalar, _Index >::setZero | ( | ) |
Set all coefficients of current subvector to zero
Definition at line 177 of file AmbiVector.h.
| Index AmbiVector< _Scalar, _Index >::size | ( | ) | const [inline] |
Definition at line 72 of file AmbiVector.h.
Index AmbiVector< _Scalar, _Index >::m_allocatedElements [protected] |
Definition at line 125 of file AmbiVector.h.
Index AmbiVector< _Scalar, _Index >::m_allocatedSize [protected] |
Definition at line 124 of file AmbiVector.h.
Scalar* AmbiVector< _Scalar, _Index >::m_buffer [protected] |
Definition at line 119 of file AmbiVector.h.
Index AmbiVector< _Scalar, _Index >::m_end [protected] |
Definition at line 123 of file AmbiVector.h.
Index AmbiVector< _Scalar, _Index >::m_llCurrent [protected] |
Definition at line 130 of file AmbiVector.h.
Index AmbiVector< _Scalar, _Index >::m_llSize [protected] |
Definition at line 131 of file AmbiVector.h.
Index AmbiVector< _Scalar, _Index >::m_llStart [protected] |
Definition at line 129 of file AmbiVector.h.
Index AmbiVector< _Scalar, _Index >::m_mode [protected] |
Definition at line 126 of file AmbiVector.h.
Index AmbiVector< _Scalar, _Index >::m_size [protected] |
Definition at line 121 of file AmbiVector.h.
Index AmbiVector< _Scalar, _Index >::m_start [protected] |
Definition at line 122 of file AmbiVector.h.
Scalar AmbiVector< _Scalar, _Index >::m_zero [protected] |
Definition at line 120 of file AmbiVector.h.