deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
internal::VectorizedArrayTrait< T > Struct Template Reference

#include <deal.II/base/vectorization.h>

Detailed Description

template<typename T>
struct internal::VectorizedArrayTrait< T >

Definition at line 6040 of file vectorization.h.

Inheritance diagram for internal::VectorizedArrayTrait< T >:
[legend]

Public Types

using value_type = T
 
using vectorized_value_type = VectorizedArray< T >
 

Static Public Member Functions

static constexpr std::size_t width ()
 
static constexpr std::size_t stride ()
 
static value_type & get (value_type &value, unsigned int c)
 
static const value_type & get (const value_type &value, unsigned int c)
 
static value_type & get_from_vectorized (vectorized_value_type &values, unsigned int c)
 
static const value_type & get_from_vectorized (const vectorized_value_type &values, unsigned int c)
 

Member Typedef Documentation

◆ value_type

template<typename T >
using internal::VectorizedArrayTrait< T >::value_type = T

Define scalar value type.

Definition at line 6045 of file vectorization.h.

◆ vectorized_value_type

template<typename T >
using internal::VectorizedArrayTrait< T >::vectorized_value_type = VectorizedArray<T>

Define vectorized value type for internal vectorization.

Definition at line 6059 of file vectorization.h.

Member Function Documentation

◆ width()

template<typename T >
static constexpr std::size_t internal::VectorizedArrayTrait< T >::width ( )
inlinestaticconstexpr

Return the width of template type.

Definition at line 6051 of file vectorization.h.

◆ stride()

template<typename T >
static constexpr std::size_t internal::VectorizedArrayTrait< T >::stride ( )
inlinestaticconstexpr

Return a stride which defines how often the template type T fits into the vectorized_value_type. This is useful to write vectorized templated code where the internal computation is vectorized and the user interface is optionally scalar or also vectorized.

Definition at line 6068 of file vectorization.h.

◆ get() [1/2]

template<typename T >
static value_type & internal::VectorizedArrayTrait< T >::get ( value_type &  value,
unsigned int  c 
)
inlinestatic

Get a reference to scalar value (on lane 0).

Definition at line 6077 of file vectorization.h.

◆ get() [2/2]

template<typename T >
static const value_type & internal::VectorizedArrayTrait< T >::get ( const value_type &  value,
unsigned int  c 
)
inlinestatic

Get a read-only reference to scalar value (on lane 0).

Definition at line 6089 of file vectorization.h.

◆ get_from_vectorized() [1/2]

template<typename T >
static value_type & internal::VectorizedArrayTrait< T >::get_from_vectorized ( vectorized_value_type &  values,
unsigned int  c 
)
inlinestatic

Get a reference to scalar value on lane c from a vectorized values field.

Definition at line 6101 of file vectorization.h.

◆ get_from_vectorized() [2/2]

template<typename T >
static const value_type & internal::VectorizedArrayTrait< T >::get_from_vectorized ( const vectorized_value_type &  values,
unsigned int  c 
)
inlinestatic

Get a read-only reference to scalar value on lane c from a vectorized values field.

Definition at line 6113 of file vectorization.h.


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