11 #ifndef CUBBYFLOW_FUNCTORS_HPP 12 #define CUBBYFLOW_FUNCTORS_HPP 26 template <
typename T,
typename U>
50 constexpr T
operator()(
const T& a,
const T& b)
const;
57 constexpr T
operator()(
const T& a,
const T& b)
const;
64 constexpr T
operator()(
const T& a,
const T& b)
const;
71 constexpr T
operator()(
const T& a,
const T& b)
const;
78 constexpr T
operator()(
const T& a,
const T& b)
const;
85 constexpr T
operator()(
const T& a,
const T& b)
const;
93 double _tolerance = std::numeric_limits<double>::epsilon())
94 : tolerance(_tolerance)
99 constexpr
bool operator()(
const T& a,
const T& b)
const;
105 template <
typename T>
108 constexpr T
operator()(
const T& a,
const T& low,
const T& high)
const;
Performs std::ceil.
Definition: Functors.hpp:34
Takes absolute minimum value.
Definition: Functors.hpp:76
Takes minimum value.
Definition: Functors.hpp:62
Takes absolute maximum value.
Definition: Functors.hpp:83
constexpr SimilarTo(double _tolerance=std::numeric_limits< double >::epsilon())
Definition: Functors.hpp:92
Reverse divides operator.
Definition: Functors.hpp:55
Performs std::floor.
Definition: Functors.hpp:41
constexpr T operator()(const T &a) const
Definition: Functors-Impl.hpp:21
Definition: pybind11Utils.hpp:20
No-op operator.
Definition: Functors.hpp:20
Takes maximum value.
Definition: Functors.hpp:69
True if similar.
Definition: Functors.hpp:90
Reverse minus operator.
Definition: Functors.hpp:48
Clamps the input value with low/high.
Definition: Functors.hpp:106
Type casting operator.
Definition: Functors.hpp:27
double tolerance
Definition: Functors.hpp:101