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

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

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

Static Public Attributes

static constexpr auto value

Detailed Description

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

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

Spatial Dimension Number of components
1 3
2 4
3 6
Template Parameters
N: the spatial dimension.

Member Data Documentation

◆ value

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

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