OpenKalman
floating.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) 2022-2024 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_VALUE_FLOATING_HPP
17 #define OPENKALMAN_VALUE_FLOATING_HPP
18 
19 #include <type_traits>
20 #include "value.hpp"
21 #include "integral.hpp"
22 #include "complex.hpp"
23 
24 namespace OpenKalman::values
25 {
29  template<typename T>
30 #ifdef __cpp_concepts
31  concept floating =
32 #else
33  constexpr bool floating =
34 #endif
35  values::value<T> and (not integral<T>) and (not values::complex<T>);
36 
37 
38 } // namespace OpenKalman::values
39 
40 #endif //OPENKALMAN_VALUE_FLOATING_HPP
constexpr bool floating
T is a floating-point values::value.
Definition: floating.hpp:33
Definition for values::abs.
Definition: constant_coefficient.hpp:25
Definition for values::integral.
Definition for ::complex.
Definition for ::value.