MCPcopy Create free account
hub / github.com/PX4/eigen / prune

Method prune

Eigen/src/SparseCore/SparseMatrix.h:507–510  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

505
506 /** Suppresses all nonzeros which are \b much \b smaller \b than \a reference under the tolerence \a epsilon */
507 void prune(const Scalar& reference, const RealScalar& epsilon = NumTraits<RealScalar>::dummy_precision())
508 {
509 prune(default_prunning_func(reference,epsilon));
510 }
511
512 /** Turns the matrix into compressed format, and suppresses all nonzeros which do not satisfy the predicate \a keep.
513 * The functor type \a KeepFunc must implement the following function:

Callers 3

pruneFunction · 0.45
sparse_basicFunction · 0.45

Calls 5

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

Tested by

no test coverage detected