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

Unary operation applying a normal noise. More...

#include <noise.hpp>

Public Member Functions

 normal_noise_unary_g_op (G &rand_engine)
 Construct a new normal_noise_unary_g_op.
 
apply (const T &x) const
 Apply the unary operator on x. More...
 

Static Public Member Functions

static constexpr int complexity ()
 Estimate the complexity of operator. 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 G, typename T>
struct etl::normal_noise_unary_g_op< G, T >

Unary operation applying a normal noise.

Template Parameters
TThe type of value

Member Function Documentation

◆ apply()

template<typename G , typename T >
T etl::normal_noise_unary_g_op< G, T >::apply ( const T &  x) const
inline

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 G , typename T >
static constexpr int etl::normal_noise_unary_g_op< G, T >::complexity ( )
inlinestatic

Estimate the complexity of operator.

Returns
An estimation of the complexity of the operator

◆ desc()

template<typename G , typename T >
static std::string etl::normal_noise_unary_g_op< G, T >::desc ( )
inlinestaticnoexcept

Returns a textual representation of the operator.

Returns
a string representing the operator

Member Data Documentation

◆ vectorizable

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