OpenKalman
dense_writable_matrix_t.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_DENSE_WRITABLE_MATRIX_T_HPP
17 #define OPENKALMAN_DENSE_WRITABLE_MATRIX_T_HPP
18 
19 
20 namespace OpenKalman
21 {
29 #ifdef __cpp_concepts
30  template<indexible T, Layout layout = Layout::none, values::number S = scalar_type_of_t<T>,
31  pattern_collection D = decltype(all_vector_space_descriptors(std::declval<T>()))>
32  requires (layout != Layout::stride)
33 #else
34  template<typename T, Layout layout = Layout::none, typename S = scalar_type_of_t<T>,
35  typename D = decltype(all_vector_space_descriptors(std::declval<T>())), std::enable_if_t<
36  indexible<T> and values::number<S> and pattern_collection<D>, int> = 0>
37 #endif
38  using dense_writable_matrix_t = std::decay_t<decltype(make_dense_object<T, layout, S>(std::declval<D>()))>;
39 
40 
41 
42 } // namespace OpenKalman
43 
44 
45 #endif //OPENKALMAN_DENSE_WRITABLE_MATRIX_T_HPP
The root namespace for OpenKalman.
Definition: basics.hpp:34
A generalization of the above: a custom stride is specified for each index.
std::decay_t< decltype(make_dense_object< T, layout, S >(std::declval< D >()))> dense_writable_matrix_t
An alias for a dense, writable matrix, patterned on parameter T.
Definition: dense_writable_matrix_t.hpp:38