OpenKalman
has_dynamic_dimensions.hpp
Go to the documentation of this file.
1 /* This file is part of OpenKalman, a header-only C++ library for
2  * Kalman filters and other recursive filters.
3  *
4  * Copyright (c) 2019-2025 Christopher Lee Ogden <ogden@gatech.edu>
5  *
6  * This Source Code Form is subject to the terms of the Mozilla Public
7  * License, v. 2.0. If a copy of the MPL was not distributed with this
8  * file, You can obtain one at https://mozilla.org/MPL/2.0/.
9  */
10 
16 #ifndef OPENKALMAN_HAS_DYNAMIC_DIMENSIONS_HPP
17 #define OPENKALMAN_HAS_DYNAMIC_DIMENSIONS_HPP
18 
20 
21 namespace OpenKalman
22 {
26  template<typename T>
27 #ifdef __cpp_concepts
28  concept has_dynamic_dimensions =
29 #else
30  constexpr bool has_dynamic_dimensions =
31 #endif
32  (dynamic_index_count_v<T> == stdex::dynamic_extent) or (dynamic_index_count_v<T> > 0);
33 
34 
35 }
36 
37 #endif
Definition for dynamic_index_count.
The root namespace for OpenKalman.
Definition: basics.hpp:34
constexpr bool has_dynamic_dimensions
Specifies that T has at least one index with dynamic dimensions.
Definition: has_dynamic_dimensions.hpp:30