Expression Templates Library (ETL)
Static Public Member Functions | Static Public Attributes | List of all members
etl::precise_pow_binary_op< T, E > Struct Template Reference

Binary operator for scalar power with stable precision. More...

#include <pow.hpp>

Static Public Member Functions

static constexpr int complexity ()
 Estimate the complexity of operator. More...
 
static constexpr T apply (const T &x, E value) noexcept
 Apply the unary operator on lhs and rhs. More...
 
static std::string desc () noexcept
 Returns a textual representation of the operator. More...
 

Static Public Attributes

static constexpr bool linear = true
 Indicates if the operator is linear or not.
 
static constexpr bool thread_safe = true
 Indicates if the operator is thread safe or not.
 
static constexpr bool desc_func = true
 Indicates if the description must be printed as function.
 
template<vector_mode_t V>
static constexpr bool vectorizable = false
 Indicates if the expression is vectorizable using the given vector mode. More...
 
template<typename L , typename R >
static constexpr bool gpu_computable = false
 Indicates if the operator can be computed on GPU.
 

Detailed Description

template<typename T, typename E>
struct etl::precise_pow_binary_op< T, E >

Binary operator for scalar power with stable precision.

Member Function Documentation

◆ apply()

template<typename T , typename E >
static constexpr T etl::precise_pow_binary_op< T, E >::apply ( const T &  x,
value 
)
inlinestaticnoexcept

Apply the unary operator on lhs and rhs.

Parameters
xThe left hand side value on which to apply the operator
valueThe right hand side value on which to apply the operator
Returns
The result of applying the binary operator on lhs and rhs

◆ complexity()

template<typename T , typename E >
static constexpr int etl::precise_pow_binary_op< T, E >::complexity ( )
inlinestatic

Estimate the complexity of operator.

Returns
An estimation of the complexity of the operator

◆ desc()

template<typename T , typename E >
static std::string etl::precise_pow_binary_op< T, E >::desc ( )
inlinestaticnoexcept

Returns a textual representation of the operator.

Returns
a string representing the operator

Member Data Documentation

◆ vectorizable

template<typename T , typename E >
template<vector_mode_t V>
constexpr bool etl::precise_pow_binary_op< T, E >::vectorizable = false
static

Indicates if the expression is vectorizable using the given vector mode.

Template Parameters
VThe vector mode

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