16 #ifndef OPENKALMAN_COUNT_REDUCED_DIMENSIONS_HPP 17 #define OPENKALMAN_COUNT_REDUCED_DIMENSIONS_HPP 21 template<
typename T, std::size_t...indices, std::size_t...Is>
22 constexpr
auto count_reduced_dimensions(
const T& t, std::index_sequence<indices...>, std::index_sequence<Is...>)
24 if constexpr ((dynamic_dimension<T, indices> or ...))
26 return ([](
const T& t){
27 constexpr
auto I = Is;
28 return (((I == indices) or ...)) ? get_index_dimension_of<I>(t) : 1;
33 constexpr
auto dim = ([]{
34 constexpr
auto I = Is;
35 return (((I == indices) or ...)) ? index_dimension_of_v<T, I> : 1;
37 return std::integral_constant<std::size_t, dim>{};
43 #endif //OPENKALMAN_COUNT_REDUCED_DIMENSIONS_HPP Definition: basics.hpp:48