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

Simple unary op for identity 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 = true
 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 = true
 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

Simple unary op for identity operations.

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

Member Function Documentation

◆ complexity()

static constexpr int etl::identity_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::identity_op::vectorizable = true
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: