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

Unary operation applying a normal noise. More...

#include <noise.hpp>

Static Public Member Functions

static constexpr int complexity ()
 Estimate the complexity of operator. More...
 
static T apply (const T &x)
 Apply the unary operator on x. 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.
 
static constexpr bool thread_safe = false
 Indicates if the operator is thread safe or not.
 
template<vector_mode_t V>
static constexpr bool vectorizable = false
 Indicates if the expression is vectorizable using the given vector mode. More...
 
template<typename E >
static constexpr bool gpu_computable = false
 Indicates if the operator can be computed on GPU.
 

Detailed Description

template<typename T>
struct etl::normal_noise_unary_op< T >

Unary operation applying a normal noise.

Template Parameters
TThe type of value

Member Function Documentation

◆ apply()

template<typename T >
static T etl::normal_noise_unary_op< T >::apply ( const T &  x)
inlinestatic

Apply the unary operator on x.

Parameters
xThe value on which to apply the operator
Returns
The result of applying the unary operator on x

◆ complexity()

template<typename T >
static constexpr int etl::normal_noise_unary_op< T >::complexity ( )
inlinestatic

Estimate the complexity of operator.

Returns
An estimation of the complexity of the operator

◆ desc()

template<typename T >
static std::string etl::normal_noise_unary_op< T >::desc ( )
inlinestaticnoexcept

Returns a textual representation of the operator.

Returns
a string representing the operator

Member Data Documentation

◆ vectorizable

template<typename T >
template<vector_mode_t V>
constexpr bool etl::normal_noise_unary_op< T >::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: