Blaze 3.9
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
blaze::Bind1st< OP, A1 > Struct Template Reference

Generic wrapper for an operation with fixed 1st argument. More...

#include <Bind1st.h>

Public Member Functions

constexpr Bind1st (const OP &op, const A1 &a1)
 Constructor of the Bind1st functor. More...
 
template<typename... Args>
BLAZE_ALWAYS_INLINE constexpr decltype(auto) operator() (Args &&... args) const
 Returns the result of the wrapped operation for the given arguments. More...
 
template<typename... Args>
BLAZE_ALWAYS_INLINE decltype(auto) load (Args &&... args) const
 Returns the result of the wrapped operation for the given SIMD vectors. More...
 

Static Public Member Functions

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

Private Attributes

OP op_
 The wrapped operation.
 
A1 a1_
 The 1st argument.
 

Detailed Description

template<typename OP, typename A1>
struct blaze::Bind1st< OP, A1 >

Generic wrapper for an operation with fixed 1st argument.

Constructor & Destructor Documentation

◆ Bind1st()

template<typename OP , typename A1 >
constexpr blaze::Bind1st< OP, A1 >::Bind1st ( const OP &  op,
const A1 &  a1 
)
inlineconstexpr

Constructor of the Bind1st functor.

Parameters
opThe wrapped operation.
a1The 1st argument.

Member Function Documentation

◆ load()

template<typename OP , typename A1 >
template<typename... Args>
BLAZE_ALWAYS_INLINE decltype(auto) blaze::Bind1st< OP, A1 >::load ( Args &&...  args) const
inline

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

Parameters
argsThe remaining SIMD vectors.
Returns
The result of the wrapped operation for the given SIMD vectors.

◆ operator()()

template<typename OP , typename A1 >
template<typename... Args>
BLAZE_ALWAYS_INLINE constexpr decltype(auto) blaze::Bind1st< OP, A1 >::operator() ( Args &&...  args) const
inlineconstexpr

Returns the result of the wrapped operation for the given arguments.

Parameters
argsThe remaining arguments.
Returns
The result of the wrapped operation for the given arguments.

◆ paddingEnabled()

template<typename OP , typename A1 >
static constexpr bool blaze::Bind1st< OP, A1 >::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 OP , typename A1 >
template<typename... Args>
static constexpr bool blaze::Bind1st< OP, A1 >::simdEnabled ( )
inlinestaticconstexpr

Returns whether SIMD is enabled for the specified data types Args.

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

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