![]() |
Eigen
5.0.1-dev+60122df6
|
#include <Eigen/src/SparseCore/AmbiVector.h>
Iterator over the nonzero coefficients
Public Member Functions | |
| Iterator (const AmbiVector &vec, const RealScalar &epsilon=0) | |
| Index | nonZeros () const |
| void | restart () |
| void | setBounds (Index start, Index end) |
| void | setZero () |
|
inlineexplicit |
Default constructor
| vec | the vector on which we iterate |
| epsilon | the minimal value used to prune zero coefficients. In practice, all coefficients having a magnitude smaller than epsilon are skipped. |
| Index Eigen::internal::AmbiVector< Scalar_, StorageIndex_ >::nonZeros | ( | ) | const |
| void Eigen::internal::AmbiVector< Scalar_, StorageIndex_ >::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.
|
inline |
Specifies a sub-vector to work on
| void Eigen::internal::AmbiVector< Scalar_, StorageIndex_ >::setZero | ( | ) |
Set all coefficients of current subvector to zero