35 #ifndef _BLAZE_MATH_FUNCTORS_SQRABS_H_ 36 #define _BLAZE_MATH_FUNCTORS_SQRABS_H_ 93 template<
typename T >
105 template<
typename T >
106 static constexpr
bool simdEnabled() {
return HasSIMDMult_v<T,T> && HasSIMDConj_v<T>; }
123 template<
typename T >
127 return a *
conj( a );
144 template<
typename T >
145 struct YieldsUniform<SqrAbs,T>
146 :
public IsUniform<T>
162 template<
typename MT >
163 struct YieldsSymmetric<SqrAbs,MT>
164 :
public BoolConstant< IsSymmetric_v<MT> || IsHermitian_v<MT> >
180 template<
typename MT >
181 struct YieldsLower<SqrAbs,MT>
198 template<
typename MT >
199 struct YieldsUniLower<SqrAbs,MT>
200 :
public IsUniLower<MT>
216 template<
typename MT >
217 struct YieldsStrictlyLower<SqrAbs,MT>
218 :
public IsStrictlyLower<MT>
234 template<
typename MT >
235 struct YieldsUpper<SqrAbs,MT>
252 template<
typename MT >
253 struct YieldsUniUpper<SqrAbs,MT>
254 :
public IsUniUpper<MT>
270 template<
typename MT >
271 struct YieldsStrictlyUpper<SqrAbs,MT>
272 :
public IsStrictlyUpper<MT>
288 template<
typename T >
289 struct YieldsZero<SqrAbs,T>
Generic wrapper for the squared abs() function.
Definition: SqrAbs.h:85
Header file for the IsUniUpper type trait.
Header file for the YieldsStrictlyLower type trait.
Header file for the YieldsZero type trait.
Header file for the HasSIMDConj type trait.
Header file for the SIMD multiplication functionality.
Header file for the IsUniLower type trait.
static constexpr bool paddingEnabled()
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
Definition: SqrAbs.h:114
#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
static constexpr bool simdEnabled()
Returns whether SIMD is enabled for the specified data type T.
Definition: SqrAbs.h:106
Header file for the SIMD conj functionality.
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 YieldsUniLower type trait.
Header file for the IsLower type trait.
decltype(auto) BLAZE_ALWAYS_INLINE load(const T &a) const
Returns the result of the squared abs() function for the given SIMD vector.
Definition: SqrAbs.h:124
Constraint on the data type.
Header file for the IsStrictlyLower type trait.
Header file for the conjugate shim.
Header file for the HasSIMDMult 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 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.
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 YieldsUniUpper type trait.
decltype(auto) conj(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the complex conjugate of each single element of dm.
Definition: DMatMapExpr.h:1324
Header file for the IsHermitian type trait.
System settings for the inline keywords.