Reference documentation for deal.II version 9.1.0-pre
List of all members
internal::NumberType< Tensor< rank, dim, T > > Struct Template Reference

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

Detailed Description

template<int rank, int dim, typename T>
struct internal::NumberType< Tensor< rank, dim, T > >

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.

Definition at line 713 of file tensor.h.


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