a sparse vector class More...
#include <SparseUtil.h>
Public Types | |
enum | { IsColVector = internal::traits<SparseVector>::IsColVector } |
enum | { Options = _Options } |
typedef Base::InnerIterator | InnerIterator |
typedef Base::ReverseInnerIterator | ReverseInnerIterator |
typedef internal::CompressedStorage< Scalar, StorageIndex > | Storage |
Static Protected Member Functions | |
static void | check_template_parameters () |
Protected Attributes | |
Storage | m_data |
Index | m_size |
Private Types | |
typedef SparseCompressedBase< SparseVector > | Base |
Friends | |
std::ostream & | operator<< (std::ostream &s, const SparseVector &m) |
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 Extending MatrixBase (and other classes) by defining the preprocessor symbol EIGEN_SPARSEVECTOR_PLUGIN
.
Definition at line 54 of file SparseUtil.h.
|
private |
Definition at line 67 of file SparseVector.h.
Definition at line 134 of file SparseVector.h.
Definition at line 135 of file SparseVector.h.
typedef internal::CompressedStorage<Scalar,StorageIndex> Eigen::SparseVector::Storage |
Definition at line 74 of file SparseVector.h.
anonymous enum |
Enumerator | |
---|---|
IsColVector |
Definition at line 75 of file SparseVector.h.
anonymous enum |
Enumerator | |
---|---|
Options |
Definition at line 77 of file SparseVector.h.
|
inline |
Definition at line 259 of file SparseVector.h.
|
inlineexplicit |
Definition at line 261 of file SparseVector.h.
Definition at line 263 of file SparseVector.h.
|
inline |
Definition at line 266 of file SparseVector.h.
|
inline |
Definition at line 276 of file SparseVector.h.
|
inline |
Destructor
Definition at line 341 of file SparseVector.h.
|
inline |
Definition at line 387 of file SparseVector.h.
|
inline |
Definition at line 389 of file SparseVector.h.
|
inlinestaticprotected |
Definition at line 397 of file SparseVector.h.
Definition at line 107 of file SparseVector.h.
Definition at line 102 of file SparseVector.h.
This insertion might be very costly if the number of nonzeros above i is large.
Definition at line 125 of file SparseVector.h.
Definition at line 113 of file SparseVector.h.
|
inline |
Definition at line 82 of file SparseVector.h.
|
inline |
Resizes the sparse vector to newSize, while leaving old values untouched.
If the size of the vector is decreased, then the storage of the out-of bounds coefficients is kept and reserved. Call .data().squeeze() to free extra memory.
Definition at line 246 of file SparseVector.h.
|
inline |
Definition at line 98 of file SparseVector.h.
|
inline |
Definition at line 100 of file SparseVector.h.
|
inline |
Definition at line 383 of file SparseVector.h.
|
inline |
Definition at line 363 of file SparseVector.h.
|
inline |
Definition at line 356 of file SparseVector.h.
|
inline |
Definition at line 377 of file SparseVector.h.
|
inline |
Definition at line 370 of file SparseVector.h.
|
inline |
Definition at line 207 of file SparseVector.h.
|
inline |
Definition at line 90 of file SparseVector.h.
|
inline |
Definition at line 89 of file SparseVector.h.
|
inline |
Definition at line 95 of file SparseVector.h.
|
inline |
Definition at line 94 of file SparseVector.h.
|
inline |
Definition at line 83 of file SparseVector.h.
Definition at line 182 of file SparseVector.h.
Definition at line 172 of file SparseVector.h.
Definition at line 154 of file SparseVector.h.
Definition at line 148 of file SparseVector.h.
Definition at line 160 of file SparseVector.h.
Definition at line 166 of file SparseVector.h.
|
inline |
Definition at line 140 of file SparseVector.h.
|
inline |
Definition at line 316 of file SparseVector.h.
|
inline |
Definition at line 326 of file SparseVector.h.
|
inline |
Definition at line 301 of file SparseVector.h.
|
inline |
Definition at line 93 of file SparseVector.h.
|
inline |
Definition at line 92 of file SparseVector.h.
|
inline |
Definition at line 84 of file SparseVector.h.
|
inline |
Suppresses all nonzeros which are much smaller than reference under the tolerance epsilon
Definition at line 210 of file SparseVector.h.
|
inline |
Definition at line 204 of file SparseVector.h.
|
inline |
Resizes the sparse vector to newSize This method deletes all entries, thus leaving an empty sparse vector
Definition at line 233 of file SparseVector.h.
Resizes the sparse vector to rows x cols
This method is provided for compatibility with matrices. For a column vector, cols must be equal to 1. For a row vector, rows must be equal to 1.
Definition at line 223 of file SparseVector.h.
|
inline |
Definition at line 257 of file SparseVector.h.
|
inline |
Definition at line 81 of file SparseVector.h.
|
inline |
Definition at line 137 of file SparseVector.h.
|
inline |
Definition at line 349 of file SparseVector.h.
|
inline |
Definition at line 142 of file SparseVector.h.
internal::traits< SparseVector< _Scalar, _Options, _Index > >::Scalar Eigen::SparseVector::sum | ( | ) | const |
Overloaded for performance
Definition at line 41 of file SparseRedux.h.
|
inline |
Definition at line 294 of file SparseVector.h.
|
inline |
Swaps the values of *this
and other. Overloaded for performance: this version performs a shallow swap by swapping pointers and attributes only.
Definition at line 287 of file SparseVector.h.
|
inline |
Definition at line 87 of file SparseVector.h.
|
inline |
Definition at line 86 of file SparseVector.h.
|
friend |
Definition at line 332 of file SparseVector.h.
|
protected |
Definition at line 403 of file SparseVector.h.
|
protected |
Definition at line 404 of file SparseVector.h.