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

Unary operation computing the hyperbolic sinus. More...

#include <sinh.hpp>

Public Types

template<typename V = default_vec>
using vec_type = typename V::template vec_type< T >
 

Static Public Member Functions

static constexpr int complexity ()
 Estimate the complexity of operator. More...
 
static constexpr T apply (const T &x) noexcept
 Apply the unary operator on x. More...
 
template<typename V = default_vec>
static vec_type< V > load (const vec_type< V > &x) noexcept
 Compute several applications of the operator at a time. More...
 
template<typename X , typename Y >
static auto gpu_compute_hint (const X &x, Y &y) noexcept
 Compute the result of the operation using the GPU. More...
 
template<typename X , typename Y >
static Y & gpu_compute (const X &x, Y &y) noexcept
 Compute the result of the operation using the GPU. 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 = true
 Indicates if the operator is thread safe or not.
 
template<vector_mode_t V>
static constexpr bool vectorizable
 Indicates if the expression is vectorizable using the given vector mode. More...
 
template<typename E >
static constexpr bool gpu_computable
 Indicates if the operator can be computed on GPU. More...
 

Detailed Description

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

Unary operation computing the hyperbolic sinus.

Template Parameters
TThe type of value

Member Typedef Documentation

◆ vec_type

template<typename T >
template<typename V = default_vec>
using etl::sinh_unary_op< T >::vec_type = typename V::template vec_type<T>

The vectorization type for V

Member Function Documentation

◆ apply()

template<typename T >
static constexpr T etl::sinh_unary_op< T >::apply ( const T &  x)
inlinestaticnoexcept

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::sinh_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::sinh_unary_op< T >::desc ( )
inlinestaticnoexcept

Returns a textual representation of the operator.

Returns
a string representing the operator

◆ gpu_compute()

template<typename T >
template<typename X , typename Y >
static Y& etl::sinh_unary_op< T >::gpu_compute ( const X &  x,
Y &  y 
)
inlinestaticnoexcept

Compute the result of the operation using the GPU.

Parameters
xThe expression of the unary operation
yThe expression into which to store the reuslt

◆ gpu_compute_hint()

template<typename T >
template<typename X , typename Y >
static auto etl::sinh_unary_op< T >::gpu_compute_hint ( const X &  x,
Y &  y 
)
inlinestaticnoexcept

Compute the result of the operation using the GPU.

Parameters
xThe expression of the unary operation
Returns
The result of applying the unary operator on x. The result must be a GPU computed expression.

◆ load()

template<typename T >
template<typename V = default_vec>
static vec_type<V> etl::sinh_unary_op< T >::load ( const vec_type< V > &  x)
inlinestaticnoexcept

Compute several applications of the operator at a time.

Parameters
xThe vector on which to operate
Template Parameters
VThe vectorization mode
Returns
a vector containing several results of the operator

Member Data Documentation

◆ gpu_computable

template<typename T >
template<typename E >
constexpr bool etl::sinh_unary_op< T >::gpu_computable
static
Initial value:
= (is_single_precision_t<T> && impl::egblas::has_ssinh) || (is_double_precision_t<T> && impl::egblas::has_dsinh)
|| (is_complex_single_t<T> && impl::egblas::has_csinh) || (is_complex_double_t<T> && impl::egblas::has_zsinh)

Indicates if the operator can be computed on GPU.

◆ vectorizable

template<typename T >
template<vector_mode_t V>
constexpr bool etl::sinh_unary_op< T >::vectorizable
static
Initial value:
=
(V == vector_mode_t::SSE3 && !is_complex_t<T>) || (V == vector_mode_t::AVX && !is_complex_t<T>) || (intel_compiler && !is_complex_t<T>)

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: