Expression Templates Library (ETL)
Static Public Member Functions | Static Public Attributes | List of all members
etl::transform_op Struct Reference

Simple unary op for transform operations. More...

#include <unary_expr.hpp>

Static Public Member Functions

static constexpr int complexity ()
 Estimate the complexity of operator. More...
 

Static Public Attributes

static constexpr bool linear = false
 Indicates if the operator is linear.
 
static constexpr bool thread_safe = true
 Indicates if the operator is thread safe.
 
template<vector_mode_t V>
static constexpr bool vectorizable = false
 Indicates if the expression is vectorizable using the given vector mode. More...
 
template<typename Expr >
static constexpr bool gpu_computable = Expr::gpu_computable
 Indicates if the operator can be computed on GPU.
 

Detailed Description

Simple unary op for transform operations.

Such an unary expr does not apply the operator but delegates to its sub expression.

Member Function Documentation

◆ complexity()

static constexpr int etl::transform_op::complexity ( )
inlinestatic

Estimate the complexity of operator.

Returns
An estimation of the complexity of the operator

Member Data Documentation

◆ vectorizable

template<vector_mode_t V>
constexpr bool etl::transform_op::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: