35 #ifndef _BLAZE_MATH_FUNCTORS_SQRABS_H_ 36 #define _BLAZE_MATH_FUNCTORS_SQRABS_H_ 99 template<
typename T >
102 return a *
conj( a );
111 template<
typename T >
112 static constexpr
bool simdEnabled() {
return HasSIMDMult_v<T,T> && HasSIMDConj_v<T>; }
129 template<
typename T >
133 return a *
conj( a );
150 template<
typename T >
151 struct YieldsUniform<SqrAbs,T>
152 :
public IsUniform<T>
168 template<
typename MT >
169 struct YieldsSymmetric<SqrAbs,MT>
170 :
public BoolConstant< IsSymmetric_v<MT> || IsHermitian_v<MT> >
186 template<
typename MT >
187 struct YieldsLower<SqrAbs,MT>
204 template<
typename MT >
205 struct YieldsUniLower<SqrAbs,MT>
206 :
public IsUniLower<MT>
222 template<
typename MT >
223 struct YieldsStrictlyLower<SqrAbs,MT>
224 :
public IsStrictlyLower<MT>
240 template<
typename MT >
241 struct YieldsUpper<SqrAbs,MT>
258 template<
typename MT >
259 struct YieldsUniUpper<SqrAbs,MT>
260 :
public IsUniUpper<MT>
276 template<
typename MT >
277 struct YieldsStrictlyUpper<SqrAbs,MT>
278 :
public IsStrictlyUpper<MT>
294 template<
typename T >
295 struct YieldsZero<SqrAbs,T>
Generic wrapper for the squared abs() function.
Definition: SqrAbs.h:84
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:120
#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:112
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:130
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 class template represents ...
Definition: IntegralConstant.h:101
Header file for the IntegralConstant class template.
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:1326
Header file for the IsHermitian type trait.
System settings for the inline keywords.
SqrAbs()
Default constructor of the SqrAbs functor.
Definition: SqrAbs.h:89