35#ifndef _BLAZE_MATH_FUNCTORS_ADD_H_
36#define _BLAZE_MATH_FUNCTORS_ADD_H_
93 template<
typename T1,
typename T2 >
96 return std::forward<T1>( a ) + std::forward<T2>( b );
105 template<
typename T1,
typename T2 >
124 template<
typename T1,
typename T2 >
146template<
typename T1,
typename T2 >
147struct YieldsUniform<Add,T1,T2>
148 :
public BoolConstant< IsUniform_v<T1> && IsUniform_v<T2> >
164template<
typename MT1,
typename MT2 >
166 :
public BoolConstant< IsSymmetric_v<MT1> && IsSymmetric_v<MT2> >
182template<
typename MT1,
typename MT2 >
184 :
public BoolConstant< IsHermitian_v<MT1> && IsHermitian_v<MT2> >
200template<
typename MT1,
typename MT2 >
202 :
public BoolConstant< IsLower_v<MT1> && IsLower_v<MT2> >
218template<
typename MT1,
typename MT2 >
220 :
public BoolConstant< ( IsUniLower_v<MT1> && IsStrictlyLower_v<MT2> ) ||
221 ( IsUniLower_v<MT2> && IsStrictlyLower_v<MT1> ) >
237template<
typename MT1,
typename MT2 >
239 :
public BoolConstant< IsStrictlyLower_v<MT1> && IsStrictlyLower_v<MT2> >
255template<
typename MT1,
typename MT2 >
257 :
public BoolConstant< IsUpper_v<MT1> && IsUpper_v<MT2> >
273template<
typename MT1,
typename MT2 >
275 :
public BoolConstant< ( IsUniUpper_v<MT1> && IsStrictlyUpper_v<MT2> ) ||
276 ( IsUniUpper_v<MT2> && IsStrictlyUpper_v<MT1> ) >
292template<
typename MT1,
typename MT2 >
294 :
public BoolConstant< IsStrictlyUpper_v<MT1> && IsStrictlyUpper_v<MT2> >
310template<
typename T1,
typename T2 >
Header file for the HasSIMDAdd type trait.
Macro for CUDA compatibility.
Header file for the IntegralConstant class template.
Header file for the IsHermitian type trait.
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 IsUniLower type trait.
Header file for the IsUniUpper type trait.
Header file for the IsUpper type trait.
Header file for the YieldsHermitian 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 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
constexpr bool HasSIMDAdd_v
Auxiliary variable template for the HasSIMDAdd type trait.
Definition HasSIMDAdd.h:187
#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 SIMD addition functionality.
Generic wrapper for the addition operator.
Definition Add.h:85
BLAZE_ALWAYS_INLINE decltype(auto) load(const T1 &a, const T2 &b) const
Returns the result of the addition operation for the given SIMD vectors.
Definition Add.h:125
static constexpr bool simdEnabled()
Returns whether SIMD is enabled for the specified data types T1 and T2.
Definition Add.h:106
static constexpr bool paddingEnabled()
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
Definition Add.h:114
Compile time check for operations on matrices.
Definition YieldsHermitian.h:67
Compile time check for operations on matrices.
Definition YieldsLower.h:69
Compile time check for operations on matrices.
Definition YieldsStrictlyLower.h:67
Compile time check for operations on matrices.
Definition YieldsStrictlyUpper.h:67
Compile time check for operations on matrices.
Definition YieldsSymmetric.h:67
Compile time check for operations on matrices.
Definition YieldsUniLower.h:67
Compile time check for operations on matrices.
Definition YieldsUniUpper.h:67
Compile time check for operations on matrices.
Definition YieldsUpper.h:69
Compile time check for operations on vectors and matrices.
Definition YieldsZero.h:68
System settings for the inline keywords.
Header file for the IsZero type trait.