Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
List of all members
internal::NumberType< T > Struct Template Reference

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

Detailed Description

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

The structs below are needed since VectorizedArray<T1> is a POD-type without a constructor and can be a template argument for SymmetricTensor<...,T2> where T2 would equal VectorizedArray<T1>. Internally, in previous versions of deal.II, SymmetricTensor<...,T2> would make use of the constructor of T2 leading to a compile-time error. However simply adding a constructor for VectorizedArray<T1> breaks the POD-idioms needed elsewhere. Calls to constructors of T2 subsequently got replaced by a call to internal::NumberType<T2> which then determines the right function to use by template deduction. A detailed discussion can be found at https://github.com/dealii/dealii/pull/3967 . Also see numbers.h for another specialization.

Definition at line 635 of file numbers.h.


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