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

SIMD pack of some type, using a vector implementation type. More...

#include <vectorization.hpp>

Public Types

using value_type = T
 The real value type.
 
using intrinsic_type = VT
 The used intrinsic type.
 

Public Member Functions

 simd_pack (intrinsic_type value)
 Construct a new simd_pack around the given vector. More...
 
 ETL_STRONG_INLINE (value_type) operator[](size_t i) const noexcept
 Extract an element of the vector value. More...
 

Public Attributes

intrinsic_type value
 The vector of value.
 

Static Public Attributes

static constexpr vector_mode_t vector_mode = V
 The vector implementation mode.
 

Detailed Description

template<vector_mode_t V, typename T, typename VT>
struct etl::simd_pack< V, T, VT >

SIMD pack of some type, using a vector implementation type.

Template Parameters
VThe vector implementation
TThe real type
VTThe vector type

Constructor & Destructor Documentation

◆ simd_pack()

template<vector_mode_t V, typename T , typename VT >
etl::simd_pack< V, T, VT >::simd_pack ( intrinsic_type  value)
inline

Construct a new simd_pack around the given vector.

Parameters
valueThe vector value to build around

Member Function Documentation

◆ ETL_STRONG_INLINE()

template<vector_mode_t V, typename T , typename VT >
etl::simd_pack< V, T, VT >::ETL_STRONG_INLINE ( value_type  ) const
inlinenoexcept

Extract an element of the vector value.

Parameters
iThe index of the element to get
Returns
The ith element from the vector

The documentation for this struct was generated from the following file: