35 #ifndef _BLAZE_MATH_FUNCTORS_BIND2ND_H_ 36 #define _BLAZE_MATH_FUNCTORS_BIND2ND_H_ 74 explicit inline constexpr
Bind2nd(
const OP& op,
const A2& a2 )
86 template<
typename T >
98 template<
typename T >
99 static constexpr
bool simdEnabled() {
return IsSIMDEnabled_v<OP,T,A2>; }
116 template<
typename T >
152 template<
typename OP
171 template<
typename OP,
typename A2,
typename T >
172 struct YieldsUniform<Bind2nd<OP,A2>,T>
173 :
public YieldsUniform<OP,T>
189 template<
typename OP,
typename A2,
typename MT >
190 struct YieldsSymmetric<Bind2nd<OP,A2>,MT>
191 :
public YieldsSymmetric<OP,MT>
#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
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
OP op_
The binary operation.
Definition: Bind2nd.h:126
A2 a2_
The 2nd argument.
Definition: Bind2nd.h:127
decltype(auto) BLAZE_ALWAYS_INLINE load(const T &a) const
Returns the result of the wrapped operation for the given SIMD vector.
Definition: Bind2nd.h:117
constexpr Bind2nd< OP, A2 > bind2nd(const OP &op, const A2 &a2)
Binds the given object/value to the 2nd parameter of the given binary operation.
Definition: Bind2nd.h:154
Constraint on the data type.
Header file for the SIMD set functionality.
Header file for the IsSIMDEnabled type trait.
static constexpr bool simdEnabled()
Returns whether SIMD is enabled for the specified data type T.
Definition: Bind2nd.h:99
Header file for the YieldsSymmetric type trait.
Generic wrapper for a binary operation with fixed 2nd argument.
Definition: Bind2nd.h:65
BLAZE_ALWAYS_INLINE const EnableIf_t< IsIntegral_v< T > &&HasSize_v< T, 1UL >, If_t< IsSigned_v< T >, SIMDint8, SIMDuint8 > > set(T value) noexcept
Sets all values in the vector to the given 1-byte integral value.
Definition: Set.h:75
constexpr Bind2nd(const OP &op, const A2 &a2)
Constructor of the Bind2nd functor.
Definition: Bind2nd.h:74
static constexpr bool paddingEnabled()
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
Definition: Bind2nd.h:107
System settings for the inline keywords.