a sparse vector class More...
#include <SparseVector.h>
a sparse vector class
_Scalar | the scalar type, i.e. the type of the coefficients |
See http://www.netlib.org/linalg/html_templates/node91.html for details on the storage scheme.
This class can be extended with the help of the plugin mechanism described on the page Customizing/Extending Eigen by defining the preprocessor symbol EIGEN_SPARSEVECTOR_PLUGIN
.
Definition at line 63 of file SparseVector.h.
typedef SparseMatrixBase<SparseVector> SparseVector< _Scalar, _Options, _Index >::SparseBase |
Definition at line 75 of file SparseVector.h.
anonymous enum |
Definition at line 76 of file SparseVector.h.
anonymous enum |
Definition at line 78 of file SparseVector.h.
SparseVector< _Scalar, _Options, _Index >::SparseVector | ( | ) | [inline] |
Definition at line 202 of file SparseVector.h.
SparseVector< _Scalar, _Options, _Index >::SparseVector | ( | Index | size | ) | [inline] |
Definition at line 204 of file SparseVector.h.
SparseVector< _Scalar, _Options, _Index >::SparseVector | ( | Index | rows, |
Index | cols | ||
) | [inline] |
Definition at line 206 of file SparseVector.h.
SparseVector< _Scalar, _Options, _Index >::SparseVector | ( | const MatrixBase< OtherDerived > & | other | ) | [inline] |
Definition at line 209 of file SparseVector.h.
SparseVector< _Scalar, _Options, _Index >::SparseVector | ( | const SparseMatrixBase< OtherDerived > & | other | ) | [inline] |
Definition at line 216 of file SparseVector.h.
SparseVector< _Scalar, _Options, _Index >::SparseVector | ( | const SparseVector< _Scalar, _Options, _Index > & | other | ) | [inline] |
Definition at line 222 of file SparseVector.h.
SparseVector< _Scalar, _Options, _Index >::~SparseVector | ( | ) | [inline] |
Destructor
Definition at line 346 of file SparseVector.h.
CompressedStorage<Scalar,Index>& SparseVector< _Scalar, _Options, _Index >::_data | ( | ) | [inline] |
Definition at line 85 of file SparseVector.h.
CompressedStorage<Scalar,Index>& SparseVector< _Scalar, _Options, _Index >::_data | ( | ) | const [inline] |
Definition at line 86 of file SparseVector.h.
EIGEN_STRONG_INLINE const Index* SparseVector< _Scalar, _Options, _Index >::_innerIndexPtr | ( | ) | const [inline] |
Definition at line 99 of file SparseVector.h.
EIGEN_STRONG_INLINE Index* SparseVector< _Scalar, _Options, _Index >::_innerIndexPtr | ( | ) | [inline] |
Definition at line 100 of file SparseVector.h.
EIGEN_STRONG_INLINE const Scalar* SparseVector< _Scalar, _Options, _Index >::_valuePtr | ( | ) | const [inline] |
Definition at line 96 of file SparseVector.h.
EIGEN_STRONG_INLINE Scalar* SparseVector< _Scalar, _Options, _Index >::_valuePtr | ( | ) | [inline] |
Definition at line 97 of file SparseVector.h.
Scalar SparseVector< _Scalar, _Options, _Index >::coeff | ( | Index | row, |
Index | col | ||
) | const [inline] |
Definition at line 102 of file SparseVector.h.
Scalar SparseVector< _Scalar, _Options, _Index >::coeff | ( | Index | i | ) | const [inline] |
Definition at line 107 of file SparseVector.h.
Scalar& SparseVector< _Scalar, _Options, _Index >::coeffRef | ( | Index | row, |
Index | col | ||
) | [inline] |
Definition at line 109 of file SparseVector.h.
Scalar& SparseVector< _Scalar, _Options, _Index >::coeffRef | ( | Index | i | ) | [inline] |
This insertion might be very costly if the number of nonzeros above i is large.
Definition at line 121 of file SparseVector.h.
EIGEN_STRONG_INLINE Index SparseVector< _Scalar, _Options, _Index >::cols | ( | void | ) | const [inline] |
Reimplemented from SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
Definition at line 91 of file SparseVector.h.
EIGEN_DEPRECATED void SparseVector< _Scalar, _Options, _Index >::endFill | ( | ) | [inline] |
Definition at line 388 of file SparseVector.h.
EIGEN_DEPRECATED Scalar& SparseVector< _Scalar, _Options, _Index >::fill | ( | Index | r, |
Index | c | ||
) | [inline] |
Definition at line 361 of file SparseVector.h.
EIGEN_DEPRECATED Scalar& SparseVector< _Scalar, _Options, _Index >::fill | ( | Index | i | ) | [inline] |
Definition at line 368 of file SparseVector.h.
EIGEN_DEPRECATED Scalar& SparseVector< _Scalar, _Options, _Index >::fillrand | ( | Index | r, |
Index | c | ||
) | [inline] |
Definition at line 375 of file SparseVector.h.
EIGEN_DEPRECATED Scalar& SparseVector< _Scalar, _Options, _Index >::fillrand | ( | Index | i | ) | [inline] |
Definition at line 382 of file SparseVector.h.
void SparseVector< _Scalar, _Options, _Index >::finalize | ( | ) | [inline] |
Definition at line 181 of file SparseVector.h.
EIGEN_STRONG_INLINE Index SparseVector< _Scalar, _Options, _Index >::innerNonZeros | ( | Index | j | ) | const [inline] |
Definition at line 94 of file SparseVector.h.
EIGEN_STRONG_INLINE Index SparseVector< _Scalar, _Options, _Index >::innerSize | ( | ) | const [inline] |
Reimplemented from SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
Definition at line 92 of file SparseVector.h.
Scalar& SparseVector< _Scalar, _Options, _Index >::insert | ( | Index | row, |
Index | col | ||
) | [inline] |
Definition at line 151 of file SparseVector.h.
Scalar& SparseVector< _Scalar, _Options, _Index >::insert | ( | Index | i | ) | [inline] |
Definition at line 158 of file SparseVector.h.
Scalar& SparseVector< _Scalar, _Options, _Index >::insertBack | ( | Index | i | ) | [inline] |
Definition at line 145 of file SparseVector.h.
Scalar& SparseVector< _Scalar, _Options, _Index >::insertBackByOuterInner | ( | Index | outer, |
Index | inner | ||
) | [inline] |
Definition at line 140 of file SparseVector.h.
Index SparseVector< _Scalar, _Options, _Index >::nonZeros | ( | ) | const [inline] |
Reimplemented from SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
Definition at line 133 of file SparseVector.h.
SparseVector& SparseVector< _Scalar, _Options, _Index >::operator= | ( | const SparseVector< _Scalar, _Options, _Index > & | other | ) | [inline] |
Reimplemented from SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
Definition at line 234 of file SparseVector.h.
SparseVector& SparseVector< _Scalar, _Options, _Index >::operator= | ( | const SparseMatrixBase< OtherDerived > & | other | ) | [inline] |
Reimplemented from SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
Definition at line 249 of file SparseVector.h.
SparseVector& SparseVector< _Scalar, _Options, _Index >::operator= | ( | const SparseSparseProduct< Lhs, Rhs > & | product | ) | [inline] |
Reimplemented from SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
Definition at line 259 of file SparseVector.h.
EIGEN_STRONG_INLINE Index SparseVector< _Scalar, _Options, _Index >::outerSize | ( | ) | const [inline] |
Reimplemented from SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
Definition at line 93 of file SparseVector.h.
void SparseVector< _Scalar, _Options, _Index >::prune | ( | Scalar | reference, |
RealScalar | epsilon = NumTraits<RealScalar>::dummy_precision() |
||
) | [inline] |
Definition at line 183 of file SparseVector.h.
void SparseVector< _Scalar, _Options, _Index >::reserve | ( | Index | reserveSize | ) | [inline] |
Definition at line 178 of file SparseVector.h.
void SparseVector< _Scalar, _Options, _Index >::resize | ( | Index | rows, |
Index | cols | ||
) | [inline] |
Definition at line 188 of file SparseVector.h.
void SparseVector< _Scalar, _Options, _Index >::resize | ( | Index | newSize | ) | [inline] |
Definition at line 194 of file SparseVector.h.
void SparseVector< _Scalar, _Options, _Index >::resizeNonZeros | ( | Index | size | ) | [inline] |
Definition at line 200 of file SparseVector.h.
EIGEN_STRONG_INLINE Index SparseVector< _Scalar, _Options, _Index >::rows | ( | void | ) | const [inline] |
Reimplemented from SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
Definition at line 90 of file SparseVector.h.
void SparseVector< _Scalar, _Options, _Index >::setZero | ( | ) | [inline] |
Definition at line 130 of file SparseVector.h.
EIGEN_DEPRECATED void SparseVector< _Scalar, _Options, _Index >::startFill | ( | Index | reserve | ) | [inline] |
Definition at line 354 of file SparseVector.h.
void SparseVector< _Scalar, _Options, _Index >::startVec | ( | Index | outer | ) | [inline] |
Definition at line 135 of file SparseVector.h.
internal::traits< SparseVector< _Scalar, _Options, _Index > >::Scalar SparseVector< _Scalar, _Options, _Index >::sum | ( | ) | const |
Overloaded for performance
Reimplemented from SparseMatrixBase< SparseVector< _Scalar, _Options, _Index > >.
Definition at line 50 of file SparseRedux.h.
void SparseVector< _Scalar, _Options, _Index >::swap | ( | SparseVector< _Scalar, _Options, _Index > & | other | ) | [inline] |
Definition at line 228 of file SparseVector.h.
std::ostream& operator<< | ( | std::ostream & | s, |
const SparseVector< _Scalar, _Options, _Index > & | m | ||
) | [friend] |
Definition at line 315 of file SparseVector.h.
CompressedStorage<Scalar,Index> SparseVector< _Scalar, _Options, _Index >::m_data |
Definition at line 82 of file SparseVector.h.
Index SparseVector< _Scalar, _Options, _Index >::m_size |
Definition at line 83 of file SparseVector.h.