35 #ifndef _BLAZE_MATH_FUNCTORS_CLAMP_H_ 36 #define _BLAZE_MATH_FUNCTORS_CLAMP_H_ 59 template<
typename DT >
81 template<
typename T >
Generic wrapper for the clamp() function.
Definition: Clamp.h:60
decltype(auto) clamp(const DenseMatrix< MT, SO > &dm, const DT &min, const DT &max)
Restricts each single element of the dense matrix dm to the range .
Definition: DMatMapExpr.h:1581
Header file for the clamp shim.
DT min_
The lower delimiter.
Definition: Clamp.h:90
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
decltype(auto) min(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise minimum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1147
Clamp(const DT &min, const DT &max)
Constructor of the Clamp functor.
Definition: Clamp.h:69
decltype(auto) max(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise maximum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1179
DT max_
The upper delimiter.
Definition: Clamp.h:91
System settings for the inline keywords.