OpenKalman
constant_diagonal_object.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_CONSTANT_DIAGONAL_OBJECT_HPP
17 #define OPENKALMAN_CONSTANT_DIAGONAL_OBJECT_HPP
18 
19 #include "values/values.hpp"
25 
26 namespace OpenKalman
27 {
34  template<typename T>
35 #ifdef __cpp_concepts
36  concept constant_diagonal_object =
37 #else
38  constexpr bool constant_diagonal_object =
39 #endif
40  indexible<T> and
41  ((interface::get_constant_defined_for<T> and diagonal_matrix<T>) or
42  zero<T> or
43  one_dimensional<T>);
44 
45 }
46 
47 #endif
Header file for code relating to values (e.g., scalars and indices)
Definition for diagonal_matrix.
The root namespace for OpenKalman.
Definition: basics.hpp:34
constexpr bool constant_diagonal_object
Specifies that all diagonal elements of a diagonal object are known at compile time to be the same co...
Definition: constant_diagonal_object.hpp:38
Definition for indexible.
Concepts for testing whether object_traits or library_interface definitions exist for a particular ob...
Definition for one_dimensional.
Definition for zero.