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 constexpr auto | value |
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. |
◆ value
template<unsigned short N>
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: