![]() |
Generic wrapper for the pow() function with fixed exponent. More...
#include <UnaryPow.h>
Public Types | |
using | SIMDET = SIMDTrait_< ET > |
The SIMD exponent type. | |
Public Member Functions | |
UnaryPow (ET exp) | |
Constructor of the UnaryPow functor. More... | |
template<typename T > | |
decltype(auto) BLAZE_ALWAYS_INLINE | operator() (const T &a) const |
Returns the result of the pow() function for the given object/value. More... | |
template<typename T > | |
decltype(auto) BLAZE_ALWAYS_INLINE | load (const T &a) const |
Returns the result of the pow() function for the given SIMD vector. More... | |
Static Public Member Functions | |
template<typename T > | |
static constexpr bool | simdEnabled () |
Returns whether SIMD is enabled for the specified data type T. More... | |
Private Attributes | |
ET | exp_ |
The scalar exponent. | |
SIMDET | simdExp_ |
The SIMD exponent. | |
Generic wrapper for the pow() function with fixed exponent.
|
inlineexplicit |
Constructor of the UnaryPow functor.
exp | The exponent. |
|
inline |
|
inline |
|
inlinestatic |
Returns whether SIMD is enabled for the specified data type T.