mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Replace Eigen type metaprogramming with corresponding std types and make use of alias templates
This commit is contained in:
committed by
Antonio Sánchez
parent
514f90c9ff
commit
421cbf0866
@@ -239,11 +239,11 @@ struct tensor_symmetry_pre_analysis<NumIndices, Gen_, Gens_...>
|
||||
typedef tensor_static_symgroup_if<(sizeof...(Gens_) + 1 <= max_static_generators), NumIndices, Gen_, Gens_...> helper;
|
||||
constexpr static std::size_t possible_size = helper::size;
|
||||
|
||||
typedef typename conditional<
|
||||
typedef std::conditional_t<
|
||||
possible_size == 0 || possible_size >= max_static_elements,
|
||||
DynamicSGroupFromTemplateArgs<Gen_, Gens_...>,
|
||||
typename helper::type
|
||||
>::type root_type;
|
||||
> root_type;
|
||||
};
|
||||
|
||||
template<bool instantiate, std::size_t NumIndices, typename... Gens>
|
||||
|
||||
@@ -128,11 +128,11 @@ template<
|
||||
>
|
||||
struct strip_identities<Equality, id, type_list<t, ts...>>
|
||||
{
|
||||
typedef typename conditional<
|
||||
typedef std::conditional_t<
|
||||
Equality<id, t>::value,
|
||||
typename strip_identities<Equality, id, type_list<ts...>>::type,
|
||||
typename concat<type_list<t>, typename strip_identities<Equality, id, type_list<ts...>>::type>::type
|
||||
>::type type;
|
||||
> type;
|
||||
constexpr static int global_flags = Equality<id, t>::global_flags | strip_identities<Equality, id, type_list<ts...>>::global_flags;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user