OpenKalman
Array.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_ARRAY_HPP
17 #define OPENKALMAN_EIGEN_TRAITS_ARRAY_HPP
18 
19 #include <type_traits>
20 
21 
22 namespace OpenKalman::interface
23 {
24  template<typename Scalar, int Rows, int Cols, int Options, int MaxRows, int MaxCols>
25  struct indexible_object_traits<Eigen::Array<Scalar, Rows, Cols, Options, MaxRows, MaxCols>>
26  : Eigen3::indexible_object_traits_base<Eigen::Array<Scalar, 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 Layout layout = Base::row_major ? Layout::right : Layout::left;
41 
42  };
43 
44 } // namespace OpenKalman::interface
45 
46 #endif //OPENKALMAN_EIGEN_TRAITS_ARRAY_HPP
Definition: indexible_object_traits.hpp:36
Definition: basics.hpp:41
Row-major storage (C or C++ style): contiguous storage in which the right-most index has a stride of ...
Trait object providing get and set routines.
Definition: eigen-forward-declarations.hpp:502
Definition: eigen-comma-initializers.hpp:20
Column-major storage (Fortran, Matlab, or Eigen style): contiguous storage in which the left-most ext...
Layout
The layout format of a multidimensional array.
Definition: global-definitions.hpp:47