OpenKalman
constant_matrix.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-2023 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_MATRIX_HPP
17 #define OPENKALMAN_CONSTANT_MATRIX_HPP
18 
19 #include "indexible.hpp"
21 
22 namespace OpenKalman
23 {
27  template<typename T>
28 #ifdef __cpp_concepts
29  concept constant_matrix =
30 #else
31  constexpr bool constant_matrix =
32 #endif
33  indexible<T> and values::scalar<constant_coefficient<T>>;
34 
35 
36 } // namespace OpenKalman
37 
38 #endif //OPENKALMAN_CONSTANT_MATRIX_HPP
constexpr bool constant_matrix
Specifies that all components of an object are the same constant value.
Definition: constant_matrix.hpp:31
Definition for constant_coefficient.
The root namespace for OpenKalman.
Definition: basics.hpp:34
Definition for indexible.