Reference documentation for deal.II version 9.5.0
\(\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 Member Functions | Static Public Member Functions | List of all members
VectorizedArrayBase< T, width > Class Template Reference

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

Inheritance diagram for VectorizedArrayBase< T, width >:
[legend]

Public Member Functions

 VectorizedArrayBase ()=default
 
template<typename U >
 VectorizedArrayBase (const std::initializer_list< U > &list)
 
VectorizedArrayIterator< T > begin ()
 
VectorizedArrayIterator< const T > begin () const
 
VectorizedArrayIterator< T > end ()
 
VectorizedArrayIterator< const T > end () const
 

Static Public Member Functions

static constexpr std::size_t size ()
 

Detailed Description

template<typename T, std::size_t width>
class VectorizedArrayBase< T, width >

A base class for the various VectorizedArray template specializations, containing common functionalities.

Template Parameters
TType of the actual vectorized array. We are using the Couriously Recurring Template Pattern (see https://en.wikipedia.org/wiki/Curiously_recurring_template_pattern) in this class to avoid having to resort to virtual member functions.

Definition at line 250 of file vectorization.h.

Constructor & Destructor Documentation

◆ VectorizedArrayBase() [1/2]

template<typename T , std::size_t width>
VectorizedArrayBase< T, width >::VectorizedArrayBase ( )
default

Default constructor.

◆ VectorizedArrayBase() [2/2]

template<typename T , std::size_t width>
template<typename U >
VectorizedArrayBase< T, width >::VectorizedArrayBase ( const std::initializer_list< U > &  list)
inline

Construct an array with the given initializer list.

Definition at line 262 of file vectorization.h.

Member Function Documentation

◆ size()

template<typename T , std::size_t width>
static constexpr std::size_t VectorizedArrayBase< T, width >::size ( )
inlinestaticconstexpr

Return the number of elements in the array.

Definition at line 287 of file vectorization.h.

◆ begin() [1/2]

template<typename T , std::size_t width>
VectorizedArrayIterator< T > VectorizedArrayBase< T, width >::begin ( )
inline
Returns
An iterator pointing to the beginning of the underlying data.

Definition at line 296 of file vectorization.h.

◆ begin() [2/2]

template<typename T , std::size_t width>
VectorizedArrayIterator< const T > VectorizedArrayBase< T, width >::begin ( ) const
inline
Returns
An iterator pointing to the beginning of the underlying data (const version).

Definition at line 306 of file vectorization.h.

◆ end() [1/2]

template<typename T , std::size_t width>
VectorizedArrayIterator< T > VectorizedArrayBase< T, width >::end ( )
inline
Returns
An iterator pointing to the end of the underlying data.

Definition at line 315 of file vectorization.h.

◆ end() [2/2]

template<typename T , std::size_t width>
VectorizedArrayIterator< const T > VectorizedArrayBase< T, width >::end ( ) const
inline
Returns
An iterator pointing to the end of the underlying data (const version).

Definition at line 325 of file vectorization.h.


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