16 #ifndef OPENKALMAN_IS_ONE_DIMENSIONAL_HPP 17 #define OPENKALMAN_IS_ONE_DIMENSIONAL_HPP 19 #include "patterns/patterns.hpp" 31 template<auto N = values::unbounded_size, indexible T> requires
32 (
values::integral<decltype(N)> or stdex::same_as<std::decay_t<decltype(N)>, values::unbounded_size_t>) and
33 (not values::integral<decltype(N)> or N >= 0)
34 constexpr internal::boolean_testable auto
42 return patterns::compare_collection_patterns_with_dimension<1_uz, &stdex::is_eq, N>(
get_pattern_collection(t));
decltype(auto) constexpr get_pattern_collection(T &&t)
Get the patterns::pattern_collection associated with indexible object T.
Definition: get_pattern_collection.hpp:36
constexpr auto is_one_dimensional(const T &t)
Determine whether T is one_dimensional, meaning that every index has a dimension of 1...
Definition: is_one_dimensional.hpp:40
The root namespace for OpenKalman.
Definition: basics.hpp:34
constexpr bool integral
T is an integral value.
Definition: integral.hpp:47
Definition of get_pattern_collection function.
Definition for indexible.
constexpr unbounded_size_t unbounded_size
An instance of unbounded_size_t;.
Definition: size.hpp:60