MCPcopy Create free account
hub / github.com/avaxman/Directional / prune

Function prune

external/eigen/Eigen/src/SparseCore/SparseVector.h:213–215  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

211
212 /** \copydoc SparseMatrix::prune(const Scalar&,const RealScalar&) */
213 Index prune(const Scalar& reference, const RealScalar& epsilon = NumTraits<RealScalar>::dummy_precision()) {
214 return prune([&](const Scalar& val){ return !internal::isMuchSmallerThan(val, reference, epsilon); });
215 }
216
217 /**
218 * \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