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

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 Public Attributes

static constexpr auto value

Detailed Description

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,thenumber of components of an tensor
value,thespatial dimension.

Member Data Documentation

◆ value

template<unsigned short N>
auto tfel::math::TensorSizeToDime< N >::value
staticconstexpr
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: