OpenKalman
triangular_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-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_TRIANGULAR_MATRIX_HPP
17 #define OPENKALMAN_TRIANGULAR_MATRIX_HPP
18 
19 
20 namespace OpenKalman
21 {
32  template<typename T, TriangleType t = TriangleType::any>
33 #ifdef __cpp_concepts
34  concept triangular_matrix = indexible<T> and
35  (interface::indexible_object_traits<std::decay_t<T>>::template is_triangular<t> or constant_diagonal_matrix<T>);
36 #else
37  constexpr bool triangular_matrix = internal::is_explicitly_triangular<T, t>::value or constant_diagonal_matrix<T>;
38 #endif
39 
40 
41 } // namespace OpenKalman
42 
43 #endif //OPENKALMAN_TRIANGULAR_MATRIX_HPP
Definition: square_shaped.hpp:58
constexpr bool triangular_matrix
Specifies that a type is a triangular matrix (upper, lower, or diagonal).
Definition: triangular_matrix.hpp:37
The root namespace for OpenKalman.
Definition: basics.hpp:34