Generic wrapper for the clamp() function.
More...
#include <Clamp.h>
|
| template<typename T1, typename T2, typename T3> |
| static constexpr bool | simdEnabled () |
| | Returns whether SIMD is enabled for the specified data type T.
|
| static constexpr bool | paddingEnabled () |
| | Returns whether the operation supports padding, i.e. whether it can deal with zeros.
|
Generic wrapper for the clamp() function.
◆ load()
template<typename T1, typename T2, typename T3>
| BLAZE_ALWAYS_INLINE decltype(auto) blaze::Clamp::load |
( |
const T1 & | v, |
|
|
const T2 & | lo, |
|
|
const T3 & | hi ) const |
|
inline |
Returns the result of the clamp() function for the given SIMD vector.
- Parameters
-
| v | The SIMD vector to clamp. |
| lo | The minimum to clamp v. |
| hi | The maximum to clamp v. |
- Returns
- The result of the clamp() function for the given SIMD vector.
◆ operator()()
template<typename T1, typename T2, typename T3>
Returns the result of the clamp() function for the given object/value.
- Parameters
-
| v | The given object/value to clamp. |
| lo | The minimum to clamp v. |
| hi | The maximum to clamp v. |
- Returns
- The result of the clamp() function for the given object/value.
◆ paddingEnabled()
| constexpr bool blaze::Clamp::paddingEnabled |
( |
| ) |
|
|
inlinestaticconstexpr |
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
- Returns
- true in case padding is supported, false if not.
◆ simdEnabled()
template<typename T1, typename T2, typename T3>
| constexpr bool blaze::Clamp::simdEnabled |
( |
| ) |
|
|
inlinestaticconstexpr |
Returns whether SIMD is enabled for the specified data type T.
- Returns
- true in case SIMD is enabled for the data type T, false if not.
The documentation for this struct was generated from the following file: