Blaze 3.9
Public Member Functions | Static Public Member Functions | List of all members
blaze::Sub Struct Reference

Generic wrapper for the subtraction operator. More...

#include <Sub.h>

Public Member Functions

template<typename T1 , typename T2 >
BLAZE_ALWAYS_INLINE BLAZE_DEVICE_CALLABLE decltype(auto) operator() (T1 &&a, T2 &&b) const
 Returns the result of the subtraction operator for the given objects/values. More...
 
template<typename T1 , typename T2 >
BLAZE_ALWAYS_INLINE decltype(auto) load (const T1 &a, const T2 &b) const
 Returns the result of the subtraction operation for the given SIMD vectors. More...
 

Static Public Member Functions

template<typename T1 , typename T2 >
static constexpr bool simdEnabled ()
 Returns whether SIMD is enabled for the specified data types T1 and T2. More...
 
static constexpr bool paddingEnabled ()
 Returns whether the operation supports padding, i.e. whether it can deal with zeros. More...
 

Detailed Description

Generic wrapper for the subtraction operator.

Member Function Documentation

◆ load()

template<typename T1 , typename T2 >
BLAZE_ALWAYS_INLINE decltype(auto) blaze::Sub::load ( const T1 &  a,
const T2 &  b 
) const
inline

Returns the result of the subtraction operation for the given SIMD vectors.

Parameters
aThe left-hand side SIMD vector.
bThe right-hand side SIMD vector.
Returns
The result of the subtraction operation for the given SIMD vectors.

◆ operator()()

template<typename T1 , typename T2 >
BLAZE_ALWAYS_INLINE BLAZE_DEVICE_CALLABLE decltype(auto) blaze::Sub::operator() ( T1 &&  a,
T2 &&  b 
) const
inline

Returns the result of the subtraction operator for the given objects/values.

Parameters
aThe left-hand side object/value.
bThe right-hand side object/value.
Returns
The result of the subtraction operator for the given objects/values.

◆ paddingEnabled()

static constexpr bool blaze::Sub::paddingEnabled ( )
inlinestaticconstexpr

Returns whether the operation supports padding, i.e. whether it can deal with zeros.

Returns
true in case padding is supported, false if not.

◆ simdEnabled()

template<typename T1 , typename T2 >
static constexpr bool blaze::Sub::simdEnabled ( )
inlinestaticconstexpr

Returns whether SIMD is enabled for the specified data types T1 and T2.

Returns
true in case SIMD is enabled for the data types T1 and T2, false if not.

The documentation for this struct was generated from the following file: