Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
blaze::Pow< ET > Struct Template Reference

Generic wrapper for the pow() function. More...

#include <Pow.h>

Public Types

using SIMDET = SIMDTrait_< ET >
 The SIMD exponent type.
 

Public Member Functions

 Pow (ET exp)
 Constructor of the Pow functor. More...
 
template<typename T >
decltype(auto) BLAZE_ALWAYS_INLINE operator() (const T &a) const
 Returns the result of the pow() function for the given object/value. More...
 
template<typename T >
decltype(auto) BLAZE_ALWAYS_INLINE load (const T &a) const
 Returns the result of the pow() function for the given SIMD vector. More...
 

Static Public Member Functions

template<typename T >
static constexpr bool simdEnabled ()
 Returns whether SIMD is enabled for the specified data type T. More...
 

Private Attributes

ET exp_
 The scalar exponent.
 
SIMDET simdExp_
 The SIMD exponent.
 

Detailed Description

template<typename ET>
struct blaze::Pow< ET >

Generic wrapper for the pow() function.

Constructor & Destructor Documentation

◆ Pow()

template<typename ET >
blaze::Pow< ET >::Pow ( ET  exp)
inlineexplicit

Constructor of the Pow functor.

Parameters
expThe exponent.

Member Function Documentation

◆ load()

template<typename ET >
template<typename T >
decltype(auto) BLAZE_ALWAYS_INLINE blaze::Pow< ET >::load ( const T &  a) const
inline

Returns the result of the pow() function for the given SIMD vector.

Parameters
aThe given SIMD vector.
Returns
The result of the pow() function for the given SIMD vector.

◆ operator()()

template<typename ET >
template<typename T >
decltype(auto) BLAZE_ALWAYS_INLINE blaze::Pow< ET >::operator() ( const T &  a) const
inline

Returns the result of the pow() function for the given object/value.

Parameters
aThe given object/value.
Returns
The result of the pow() function for the given object/value.

◆ simdEnabled()

template<typename ET >
template<typename T >
static constexpr bool blaze::Pow< ET >::simdEnabled ( )
inlinestatic

Returns whether SIMD is enabled for the specified data type T.

Returns
true in case SIMD is enabled for the data type T, false if not.

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