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-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_HERMITIAN_ADAPTER_TYPE_OF_HPP
17 #define OPENKALMAN_HERMITIAN_ADAPTER_TYPE_OF_HPP
18 
21 
22 namespace OpenKalman
23 {
30  template<typename T, typename...Ts>
31  struct hermitian_adapter_type_of : std::integral_constant<HermitianAdapterType,
32  (hermitian_adapter<T, HermitianAdapterType::lower> and ... and hermitian_adapter<Ts, HermitianAdapterType::lower>) ? HermitianAdapterType::lower :
33  (hermitian_adapter<T, HermitianAdapterType::upper> and ... and hermitian_adapter<Ts, HermitianAdapterType::upper>) ? HermitianAdapterType::upper :
34  (hermitian_adapter<T> and ... and hermitian_adapter<Ts>) ? HermitianAdapterType::any :
35  HermitianAdapterType::none> {};
36 
37 
43  template<typename T, typename...Ts>
45 
46 
47 }
48 
49 #endif
constexpr bool value
T is a fixed or dynamic value that is reducible to a number.
Definition: value.hpp:45
Enumerations relating to linear algebra.
The root namespace for OpenKalman.
Definition: basics.hpp:34
constexpr auto hermitian_adapter_type_of_v
The triangle_type associated with the storage triangle of a hermitian_matrix.
Definition: hermitian_adapter_type_of.hpp:44
Definition for hermitian_adapter.
The triangle_type associated with the storage triangle of one or more matrices.
Definition: hermitian_adapter_type_of.hpp:31