OpenKalman
hermitian_adapter_type_of.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_HERMITIAN_ADAPTER_TYPE_OF_HPP
17 #define OPENKALMAN_HERMITIAN_ADAPTER_TYPE_OF_HPP
18 
19 
20 namespace OpenKalman
21 {
27  template<typename T, typename...Ts>
28  struct hermitian_adapter_type_of : std::integral_constant<HermitianAdapterType,
29  (hermitian_adapter<T, HermitianAdapterType::lower> and ... and hermitian_adapter<Ts, HermitianAdapterType::lower>) ? HermitianAdapterType::lower :
30  (hermitian_adapter<T, HermitianAdapterType::upper> and ... and hermitian_adapter<Ts, HermitianAdapterType::upper>) ? HermitianAdapterType::upper :
31  HermitianAdapterType::any> {};
32 
33 
39  template<typename T, typename...Ts>
41 
42 
43 } // namespace OpenKalman
44 
45 #endif //OPENKALMAN_HERMITIAN_ADAPTER_TYPE_OF_HPP
constexpr bool value
T is numerical value or is reducible to a numerical value.
Definition: value.hpp:31
The root namespace for OpenKalman.
Definition: basics.hpp:34
constexpr auto hermitian_adapter_type_of_v
The TriangleType associated with the storage triangle of a hermitian_matrix.
Definition: hermitian_adapter_type_of.hpp:40
The TriangleType associated with the storage triangle of one or more matrices.
Definition: hermitian_adapter_type_of.hpp:28