8#include <similie/misc/specialization.hpp>
9#include <similie/tensor/tensor_indices/character.hpp>
15template <TensorNatIndex Index, std::
size_t I = 1>
20template <TensorNatIndex Index>
25template <
class Indices, std::
size_t I>
28template <std::
size_t I>
29struct Primes<
ddc::TypeSeq<>, I>
31 using type = ddc::TypeSeq<>;
34template <
class... Index, std::size_t I>
35struct Primes<
ddc::TypeSeq<Index...>, I>
37 using type = ddc::TypeSeq<prime<Index, I>...>;
40template <
class... Index, std::size_t I>
41struct Primes<
ddc::TypeSeq<Contravariant<Index>...>, I>
43 using type = ddc::TypeSeq<Contravariant<prime<Index, I>>...>;
46template <
class... Index, std::size_t I>
47struct Primes<
ddc::TypeSeq<Covariant<Index>...>, I>
49 using type = ddc::TypeSeq<Covariant<prime<Index, I>>...>;
54template <misc::Specialization<ddc::TypeSeq> Indices, std::
size_t I = 1>
55using primes = detail::Primes<Indices, I>::type;
57template <misc::Specialization<ddc::TypeSeq> Indices>
detail::Primes< Indices, I >::type primes
primes< Indices, 2 > seconds
The top-level namespace of SimiLie.