35#ifndef _BLAZE_MATH_FUNCTORS_POW2_H_
36#define _BLAZE_MATH_FUNCTORS_POW2_H_
87 template<
typename T >
90 return pow2( std::forward<T>( a ) );
99 template<
typename T >
100 static constexpr bool simdEnabled() {
return HasSIMDMult_v<T,T>; }
117 template<
typename T >
138template<
typename T >
139struct YieldsUniform<Pow2,T>
140 :
public IsUniform<T>
156template<
typename MT >
157struct YieldsLower<Pow2,MT>
174template<
typename MT >
175struct YieldsUniLower<Pow2,MT>
176 :
public IsUniLower<MT>
192template<
typename MT >
193struct YieldsStrictlyLower<Pow2,MT>
194 :
public IsStrictlyLower<MT>
210template<
typename MT >
211struct YieldsUpper<Pow2,MT>
228template<
typename MT >
229struct YieldsUniUpper<Pow2,MT>
230 :
public IsUniUpper<MT>
246template<
typename MT >
247struct YieldsStrictlyUpper<Pow2,MT>
248 :
public IsStrictlyUpper<MT>
264template<
typename T >
265struct YieldsZero<Pow2,T>
Header file for the HasSIMDMult type trait.
Macro for CUDA compatibility.
Header file for the IsLower type trait.
Header file for the IsStrictlyLower type trait.
Header file for the IsStrictlyUpper type trait.
Header file for the IsUniLower type trait.
Header file for the IsUniUpper type trait.
Header file for the IsUpper type trait.
Header file for the YieldsLower type trait.
Header file for the YieldsStrictlyLower type trait.
Header file for the YieldsStrictlyUpper type trait.
Header file for the YieldsUniLower type trait.
Header file for the YieldsUniUpper type trait.
Header file for the YieldsUpper type trait.
Header file for the YieldsZero type trait.
Constraint on the data type.
#define BLAZE_CONSTRAINT_MUST_BE_SIMD_PACK(T)
Constraint on the data type.
Definition: SIMDPack.h:60
BLAZE_ALWAYS_INLINE constexpr decltype(auto) pow2(const T &a) noexcept(noexcept(a *a))
Squaring the given value/object.
Definition: Pow2.h:69
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
#define BLAZE_DEVICE_CALLABLE
Conditional macro that sets host and device attributes when compiled with CUDA.
Definition: HostDevice.h:94
Header file for the pow2 shim.
Generic wrapper for the pow2() function.
Definition: Pow2.h:80
BLAZE_ALWAYS_INLINE decltype(auto) load(const T &a) const
Returns the result of the pow2() function for the given SIMD vector.
Definition: Pow2.h:118
static constexpr bool paddingEnabled()
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
Definition: Pow2.h:108
static constexpr bool simdEnabled()
Returns whether SIMD is enabled for the specified data type T.
Definition: Pow2.h:100
System settings for the inline keywords.
Header file for the IsZero type trait.