tfel
Loading...
Searching...
No Matches
tfel::math::TensorDimeToSize< N > Class Template Reference

Metafunction which returns the number of components of an tensor given the spatial dimension used. The mapping between these two numbers is given by the following table: More...

#include </home/runner/work/tfel/tfel/include/TFEL/Math/Forward/tensor.hxx>

Static Public Attributes

static constexpr auto value

Detailed Description

template<unsigned short N>
requires ((N == 1u) || (N == 2u) || (N == 3u))
class tfel::math::TensorDimeToSize< N >

Metafunction which returns the number of components of an tensor given the spatial dimension used. The mapping between these two numbers is given by the following table:

Spatial Dimension Number of components
1 3
2 5
3 9
Template Parameters
N,thespatial dimension.

Member Data Documentation

◆ value

template<unsigned short N>
auto tfel::math::TensorDimeToSize< N >::value
staticconstexpr
Initial value:
= []() constexpr -> unsigned short {
constexpr unsigned short values[4] = {0u, 3u, 5u, 9u};
return values[N];
}
()

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