OpenKalman
dimension_size_of_index_is.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_DIMENSION_SIZE_OF_INDEX_IS_HPP
17 #define OPENKALMAN_DIMENSION_SIZE_OF_INDEX_IS_HPP
18 
19 #include "values/values.hpp"
22 
23 namespace OpenKalman
24 {
31  template<typename T, std::size_t index, std::size_t value, auto comp = &stdex::is_eq, applicability b = applicability::guaranteed>
32 #ifdef __cpp_concepts
34 #else
35  constexpr bool dimension_size_of_index_is =
36 #endif
37  indexible<T> and
38  values::size_compares_with<index_dimension_of<T, index>, std::integral_constant<std::size_t, value>, comp, b>;
39 
40 
41 }
42 
43 #endif
Header file for code relating to values (e.g., scalars and indices)
The root namespace for OpenKalman.
Definition: basics.hpp:34
constexpr bool dimension_size_of_index_is
Specifies that a given index of T has a specified size.
Definition: dimension_size_of_index_is.hpp:35
Definition for index_dimension_of.
Definition for indexible.