- 3.0.2 rigid body dynamics module.
iit::rbd::Utils::CwiseAlmostZeroOp< Scalar > Struct Template Reference

#include <utils.h>

Public Member Functions

 CwiseAlmostZeroOp (const Scalar &threshold)
 
const Scalar operator() (const Scalar &x) const
 

Detailed Description

template<typename Scalar>
struct iit::rbd::Utils::CwiseAlmostZeroOp< Scalar >

Coefficient-wise, unary operator that evaluates to zero for each element of the matrix expression whose absolute value is below a threshold. Useful for printing matrices, approximating with 0 small coefficients.

Constructor & Destructor Documentation

◆ CwiseAlmostZeroOp()

template<typename Scalar >
iit::rbd::Utils::CwiseAlmostZeroOp< Scalar >::CwiseAlmostZeroOp ( const Scalar threshold)
inline

Member Function Documentation

◆ operator()()

template<typename Scalar >
const Scalar iit::rbd::Utils::CwiseAlmostZeroOp< Scalar >::operator() ( const Scalar x) const
inline

The documentation for this struct was generated from the following file: