CwiseClampOp< Scalar > Struct Template Reference

Public Member Functions

 CwiseClampOp (const Scalar &inf, const Scalar &sup)
 
const Scalar operator() (const Scalar &x) const
 

Public Attributes

Scalar m_inf
 
Scalar m_sup
 

Constructor & Destructor Documentation

◆ CwiseClampOp()

template<typename Scalar >
CwiseClampOp< Scalar >::CwiseClampOp ( const Scalar inf,
const Scalar sup 
)
inline
7 : m_inf(inf), m_sup(sup) {}
const Mdouble inf
Definition: GeneralDefine.h:23
Scalar m_sup
Definition: class_CwiseUnaryOp.cpp:9
Scalar m_inf
Definition: class_CwiseUnaryOp.cpp:9

Member Function Documentation

◆ operator()()

template<typename Scalar >
const Scalar CwiseClampOp< Scalar >::operator() ( const Scalar x) const
inline
8 { return x < m_inf ? m_inf : (x > m_sup ? m_sup : x); }
list x
Definition: plotDoE.py:28

References CwiseClampOp< Scalar >::m_inf, CwiseClampOp< Scalar >::m_sup, and plotDoE::x.

Member Data Documentation

◆ m_inf

template<typename Scalar >
Scalar CwiseClampOp< Scalar >::m_inf

◆ m_sup

template<typename Scalar >
Scalar CwiseClampOp< Scalar >::m_sup

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