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

Method prune

include/Eigen/Eigen/src/SparseCore/SparseMatrix.h:635–638  ·  view source on GitHub ↗

Suppresses all nonzeros which are \b much \b smaller \b than \a reference under the tolerance \a epsilon */

Source from the content-addressed store, hash-verified

633
634 /** Suppresses all nonzeros which are \b much \b smaller \b than \a reference under the tolerance \a epsilon */
635 void prune(const Scalar& reference, const RealScalar& epsilon = NumTraits<RealScalar>::dummy_precision())
636 {
637 prune(default_prunning_func(reference,epsilon));
638 }
639
640 /** Turns the matrix into compressed format, and suppresses all nonzeros which do not satisfy the predicate \a keep.
641 * The functor type \a KeepFunc must implement the following function:

Callers

nothing calls this directly

Calls 5

pruneFunction · 0.85
indexMethod · 0.45
valueMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected