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