MCPcopy Create free account
hub / github.com/TinyMPC/TinyMPC / prune

Function prune

include/Eigen/Eigen/src/SparseCore/SparseVector.h:212–214  ·  view source on GitHub ↗

\copydoc SparseMatrix::prune(const Scalar&,const RealScalar&) */

Source from the content-addressed store, hash-verified

210
211 /** \copydoc SparseMatrix::prune(const Scalar&,const RealScalar&) */
212 Index prune(const Scalar& reference, const RealScalar& epsilon = NumTraits<RealScalar>::dummy_precision()) {
213 return prune([&](const Scalar& val){ return !internal::isMuchSmallerThan(val, reference, epsilon); });
214 }
215
216 /**
217 * \brief Prunes the entries of the vector based on a `predicate`

Callers 1

pruneMethod · 0.85

Calls 5

isMuchSmallerThanFunction · 0.85
sizeMethod · 0.45
valueMethod · 0.45
indexMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected