35 #ifndef _BLAZE_MATH_FUNCTORS_HYPOT_H_ 36 #define _BLAZE_MATH_FUNCTORS_HYPOT_H_ 87 template<
typename T1,
typename T2 >
99 template<
typename T1,
typename T2 >
100 static constexpr
bool simdEnabled() {
return HasSIMDHypot_v<T1,T2>; }
118 template<
typename T1,
typename T2 >
123 return hypot( a, b );
140 template<
typename T1,
typename T2 >
141 struct YieldsUniform<Hypot,T1,T2>
142 :
public BoolConstant< IsUniform_v<T1> && IsUniform_v<T2> >
158 template<
typename MT1,
typename MT2 >
159 struct YieldsSymmetric<Hypot,MT1,MT2>
160 :
public BoolConstant< IsSymmetric_v<MT1> && IsSymmetric_v<MT2> >
176 template<
typename MT1,
typename MT2 >
177 struct YieldsLower<Hypot,MT1,MT2>
178 :
public BoolConstant< IsLower_v<MT1> && IsLower_v<MT2> >
194 template<
typename MT1,
typename MT2 >
195 struct YieldsStrictlyLower<Hypot,MT1,MT2>
196 :
public BoolConstant< IsStrictlyLower_v<MT1> && IsStrictlyLower_v<MT2> >
212 template<
typename MT1,
typename MT2 >
213 struct YieldsUpper<Hypot,MT1,MT2>
214 :
public BoolConstant< IsUpper_v<MT1> && IsUpper_v<MT2> >
230 template<
typename MT1,
typename MT2 >
231 struct YieldsStrictlyUpper<Hypot,MT1,MT2>
232 :
public BoolConstant< IsStrictlyUpper_v<MT1> && IsStrictlyUpper_v<MT2> >
248 template<
typename T1,
typename T2 >
249 struct YieldsZero<Hypot,T1,T2>
decltype(auto) hypot(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise hypotenous for the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1235
Header file for the YieldsStrictlyLower type trait.
Header file for the YieldsZero type trait.
static constexpr bool paddingEnabled()
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
Definition: Hypot.h:108
#define BLAZE_CONSTRAINT_MUST_BE_SIMD_PACK(T)
Constraint on the data type.In case the given data type T is not a SIMD pack, a compilation error is ...
Definition: SIMDPack.h:60
Header file for the IsStrictlyUpper type trait.
Header file for the IsSymmetric type trait.
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
Header file for the YieldsStrictlyUpper type trait.
Header file for the SIMD hypothenous functionality.
decltype(auto) BLAZE_ALWAYS_INLINE load(const T1 &a, const T2 &b) const
Returns the result of the hypot() function for the given SIMD vectors.
Definition: Hypot.h:119
Header file for the IsLower type trait.
Constraint on the data type.
Header file for the IsStrictlyLower type trait.
Header file for the YieldsSymmetric type trait.
Header file for the YieldsUpper type trait.
Header file for the IsZero type trait.
Header file for the hypot shim.
Header file for the YieldsLower type trait.
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.The BoolConstant alias template represents ...
Definition: IntegralConstant.h:110
Macro for CUDA compatibility.
Generic wrapper for the hypot() function.
Definition: Hypot.h:78
Header file for the IntegralConstant class template.
#define BLAZE_DEVICE_CALLABLE
Conditional macro that sets host and device attributes when compiled with CUDA.
Definition: HostDevice.h:94
Header file for the IsUpper type trait.
Header file for the HasSIMDHypot type trait.
static constexpr bool simdEnabled()
Returns whether SIMD is enabled for the specified data types T1 and T2.
Definition: Hypot.h:100
System settings for the inline keywords.