35#ifndef _BLAZE_MATH_FUNCTORS_HYPOT_H_
36#define _BLAZE_MATH_FUNCTORS_HYPOT_H_
88 template<
typename T1,
typename T2 >
91 return hypot( std::forward<T1>( a ), std::forward<T2>( b ) );
100 template<
typename T1,
typename T2 >
101 static constexpr bool simdEnabled() {
return HasSIMDHypot_v<T1,T2>; }
119 template<
typename T1,
typename T2 >
124 return hypot( a, b );
141template<
typename T1,
typename T2 >
142struct YieldsUniform<Hypot,T1,T2>
143 :
public BoolConstant< IsUniform_v<T1> && IsUniform_v<T2> >
159template<
typename MT1,
typename MT2 >
160struct YieldsSymmetric<Hypot,MT1,MT2>
161 :
public BoolConstant< IsSymmetric_v<MT1> && IsSymmetric_v<MT2> >
177template<
typename MT1,
typename MT2 >
178struct YieldsLower<Hypot,MT1,MT2>
179 :
public BoolConstant< IsLower_v<MT1> && IsLower_v<MT2> >
195template<
typename MT1,
typename MT2 >
196struct YieldsStrictlyLower<Hypot,MT1,MT2>
197 :
public BoolConstant< IsStrictlyLower_v<MT1> && IsStrictlyLower_v<MT2> >
213template<
typename MT1,
typename MT2 >
214struct YieldsUpper<Hypot,MT1,MT2>
215 :
public BoolConstant< IsUpper_v<MT1> && IsUpper_v<MT2> >
231template<
typename MT1,
typename MT2 >
232struct YieldsStrictlyUpper<Hypot,MT1,MT2>
233 :
public BoolConstant< IsStrictlyUpper_v<MT1> && IsStrictlyUpper_v<MT2> >
249template<
typename T1,
typename T2 >
250struct YieldsZero<Hypot,T1,T2>
Header file for the HasSIMDHypot type trait.
Macro for CUDA compatibility.
Header file for the IntegralConstant class template.
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 IsSymmetric 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 YieldsSymmetric 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 const SIMDdouble hypot(const SIMDf64< T > &a, const SIMDf64< T > &b) noexcept=delete
Computes the length of the hypotenous of a right triangle of a vector of double precision floating po...
#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
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition: IntegralConstant.h:110
Header file for the hypot shim.
Header file for the SIMD hypothenous functionality.
Generic wrapper for the hypot() function.
Definition: Hypot.h:80
static constexpr bool simdEnabled()
Returns whether SIMD is enabled for the specified data types T1 and T2.
Definition: Hypot.h:101
static constexpr bool paddingEnabled()
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
Definition: Hypot.h:109
BLAZE_ALWAYS_INLINE decltype(auto) load(const T1 &a, const T2 &b) const
Returns the result of the hypot() function for the given SIMD vectors.
Definition: Hypot.h:120
System settings for the inline keywords.
Header file for the IsZero type trait.