|
Expression Templates Library (ETL)
|
Binary operator for ranged noise generation. More...
#include <ranged_noise.hpp>
Public Member Functions | |
| ranged_noise_binary_g_op (G &rand_engine) | |
| Construct a new ranged_noise_binary_g_op. | |
| T | apply (const T &x, E value) |
| Apply the unary operator on lhs and rhs. 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... | |
Public Attributes | |
| G & | rand_engine |
| The random engine. | |
Static Public Attributes | |
| static constexpr bool | linear = true |
| Indicates if the operator is linear or not. | |
| static constexpr bool | thread_safe = false |
| 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. | |
Binary operator for ranged noise generation.
This operator adds noise from N(0,1) to x. If x is 0 or the rhs value, x is not modified.
|
inline |
Apply the unary operator on lhs and rhs.
| x | The left hand side value on which to apply the operator |
| value | The right hand side value on which to apply the operator |
|
inlinestatic |
Estimate the complexity of operator.
|
inlinestaticnoexcept |
Returns a textual representation of the operator.
|
static |
Indicates if the expression is vectorizable using the given vector mode.
| V | The vector mode |
1.8.13