MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / prune

Function prune

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

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

Source from the content-addressed store, hash-verified

189
190 /** \copydoc SparseMatrix::prune(const Scalar&,const RealScalar&) */
191 Index prune(const Scalar& reference, const RealScalar& epsilon = NumTraits<RealScalar>::dummy_precision()) {
192 return prune([&](const Scalar& val) { return !internal::isMuchSmallerThan(val, reference, epsilon); });
193 }
194
195 /**
196 * \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