SOFA API  f82e2e00
Open source framework for multi-physics simuation
sofa::type::pairwise Namespace Reference

Functions

template<class T , size_t TN = T::static_size>
clamp (const T &in, const typename T::value_type &minValue, const typename T::value_type &maxValue)
 clamp all the values of a fixed_array to be within a given interval. More...
 
template<class T , size_t TN = T::static_size>
constexpr T operator+ (const T &l, const T &r)
 pairwise add of two fixed_array More...
 
template<class T , size_t TN = T::static_size>
constexpr T operator- (const T &l, const T &r)
 pairwise subtract of two fixed_array More...
 
template<class T , size_t TN = T::static_size>
operator* (const T &r, const typename T::value_type &f)
 multiply from l the r components. More...
 
template<class T , size_t TN = T::static_size>
operator/ (const T &r, const typename T::value_type &f)
 multiply from l the r components. More...
 

Function Documentation

◆ clamp()

template<class T , size_t TN = T::static_size>
T sofa::type::pairwise::clamp ( const T &  in,
const typename T::value_type &  minValue,
const typename T::value_type &  maxValue 
)

clamp all the values of a fixed_array to be within a given interval.

◆ operator*()

template<class T , size_t TN = T::static_size>
T sofa::type::pairwise::operator* ( const T &  r,
const typename T::value_type &  f 
)

multiply from l the r components.

◆ operator+()

template<class T , size_t TN = T::static_size>
constexpr T sofa::type::pairwise::operator+ ( const T &  l,
const T &  r 
)
constexpr

pairwise add of two fixed_array

◆ operator-()

template<class T , size_t TN = T::static_size>
constexpr T sofa::type::pairwise::operator- ( const T &  l,
const T &  r 
)
constexpr

pairwise subtract of two fixed_array

◆ operator/()

template<class T , size_t TN = T::static_size>
T sofa::type::pairwise::operator/ ( const T &  r,
const typename T::value_type &  f 
)

multiply from l the r components.