a sparse vector class
More...
template<typename _Scalar, int _Flags = 0, typename _Index = int>
class Eigen::SparseVector< _Scalar, _Flags, _Index >
a sparse vector class
- Template Parameters
-
_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
.
Scalar& coeffRef |
( |
Index |
i | ) |
|
|
inline |
- Returns
- a reference to the coefficient value at given index i This operation involes a log(rho*size) binary search. If the coefficient does not exist yet, then a sorted insertion into a sequential buffer is performed.
This insertion might be very costly if the number of nonzeros above i is large.
EIGEN_DEPRECATED void endFill |
( |
| ) |
|
|
inline |
EIGEN_DEPRECATED Scalar& fill |
( |
Index |
r, |
|
|
Index |
c |
|
) |
| |
|
inline |
EIGEN_DEPRECATED Scalar& fill |
( |
Index |
i | ) |
|
|
inline |
EIGEN_DEPRECATED Scalar& fillrand |
( |
Index |
r, |
|
|
Index |
c |
|
) |
| |
|
inline |
EIGEN_DEPRECATED Scalar& fillrand |
( |
Index |
i | ) |
|
|
inline |
- Returns
- the number of non zero coefficients
EIGEN_DEPRECATED void startFill |
( |
Index |
reserve | ) |
|
|
inline |
internal::traits< SparseVector< _Scalar, _Options, _Index > >::Scalar sum |
( |
| ) |
const |
Overloaded for performance
The documentation for this class was generated from the following files: