OpenKalman
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_EIGEN_TRAITS_MATRIX_HPP
17 #define OPENKALMAN_EIGEN_TRAITS_MATRIX_HPP
18 
19 #include <type_traits>
20 
21 
22 namespace OpenKalman::interface
23 {
24  template<typename S, int rows, int cols, int options, int maxrows, int maxcols>
25  struct object_traits<Eigen::Matrix<S, rows, cols, options, maxrows, maxcols>>
26  : Eigen3::object_traits_base<Eigen::Matrix<S, rows, cols, options, maxrows, maxcols>>
27  {
28  private:
29 
31 
32  public:
33 
34  // nested_object() not defined
35 
36  // get_constant() not defined
37 
38  // get_constant_diagonal() not defined
39 
40  static constexpr data_layout layout = Base::row_major ? data_layout::right : data_layout::left;
41 
42  };
43 
44 }
45 
46 #endif
Definition: basics.hpp:41
Definition: eigen-comma-initializers.hpp:20
Definition: object_traits.hpp:38
Trait object providing get and set routines.
Definition: eigen-forward-declarations.hpp:502
A matrix with typed rows and columns.
Definition: forward-class-declarations.hpp:292