Metafunction which returns the spatial dimension given the number of components of a stensor.
More...
#include </home/runner/work/tfel/tfel/include/TFEL/Math/Forward/stensor.hxx>
|
| static constexpr auto | value |
template<unsigned short N>
requires ((N == 3u) || (N == 4u) || (N == 6u))
class tfel::math::StensorSizeToDime< N >
Metafunction which returns the spatial dimension given the number of components of a stensor.
- Parameters
-
| N,the | number of components of an stensor |
| value,the | spatial dimension. |
◆ value
template<unsigned short N>
Initial value:= []() constexpr -> unsigned short {
constexpr unsigned short values[7] = {0u, 0u, 0u, 1u, 2u, 0u, 3u};
return values[N];
}
()
The documentation for this class was generated from the following file: