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