OpenKalman
diagonal_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_DIAGONAL_MATRIX_HPP
17 #define OPENKALMAN_DIAGONAL_MATRIX_HPP
18 
19 
20 namespace OpenKalman
21 {
28  template<typename T>
29 #ifdef __cpp_concepts
30  concept diagonal_matrix =
31 #else
32  constexpr bool diagonal_matrix =
33 #endif
34  triangular_matrix<T, TriangleType::diagonal>;
35 
36 
37 } // namespace OpenKalman
38 
39 #endif //OPENKALMAN_DIAGONAL_MATRIX_HPP
constexpr bool diagonal_matrix
Specifies that a type is a diagonal matrix or tensor.
Definition: diagonal_matrix.hpp:32
The root namespace for OpenKalman.
Definition: basics.hpp:34