Generic wrapper for the multiply-accumulate (
; MAC) operation.
More...
#include <MAC.h>
|
| template<typename T1, typename T2, typename T3> |
| BLAZE_ALWAYS_INLINE BLAZE_DEVICE_CALLABLE decltype(auto) | operator() (T1 &&a, T2 &&b, T3 &&c) const |
| | Returns the result of the MAC operation for the given objects/values.
|
| template<typename T1, typename T2, typename T3> |
| BLAZE_ALWAYS_INLINE decltype(auto) | load (const T1 &a, const T2 &b, const T3 &c) const |
| | Returns the result of the MAC operation for the given SIMD vectors.
|
|
| template<typename T1, typename T2, typename T3> |
| static constexpr bool | simdEnabled () |
| | Returns whether SIMD is enabled for the specified data types T1, T2, and T3.
|
| static constexpr bool | paddingEnabled () |
| | Returns whether the operation supports padding, i.e. whether it can deal with zeros.
|
Generic wrapper for the multiply-accumulate (
; MAC) operation.
◆ load()
template<typename T1, typename T2, typename T3>
| BLAZE_ALWAYS_INLINE decltype(auto) blaze::MAC::load |
( |
const T1 & | a, |
|
|
const T2 & | b, |
|
|
const T3 & | c ) const |
|
inline |
Returns the result of the MAC operation for the given SIMD vectors.
- Parameters
-
| a | The first SIMD vector. |
| b | The second SIMD vector. |
| c | The third SIMD vector. |
- Returns
- The result of the MAC operation for the given SIMD vectors.
◆ operator()()
template<typename T1, typename T2, typename T3>
Returns the result of the MAC operation for the given objects/values.
- Parameters
-
| a | The first MAC operand. |
| b | The second MAC operand. |
| c | The third MAC operand |
- Returns
- The result of the MAC operation for the given objects/values.
◆ paddingEnabled()
| constexpr bool blaze::MAC::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, typename T3>
| constexpr bool blaze::MAC::simdEnabled |
( |
| ) |
|
|
inlinestaticconstexpr |
Returns whether SIMD is enabled for the specified data types T1, T2, and T3.
- Returns
- true in case SIMD is enabled for the data types T1, T2, and T3, false if not.
The documentation for this struct was generated from the following file:
- blaze/math/functors/MAC.h