![]() |
Reference documentation for deal.II version 9.1.1
|
#include <deal.II/base/tensor.h>
The structs below are needed since VectorizedArray<T1> is a POD-type without a constructor and can be a template argument for Tensor<...,T2> where T2 would equal Tensor<1, dim, VectorizedArray >. Internally, in previous versions of deal.II, Tensor<...,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.