OpenKalman
get_mdspan.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) 2025 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_GET_MDSPAN_HPP
17 #define OPENKALMAN_GET_MDSPAN_HPP
18 
23 
24 namespace OpenKalman
25 {
29 #ifdef __cpp_concepts
30  template<indexible T>
31 #else
32  template<typename T, std::enable_if_t<indexible<T>, int> = 0>
33 #endif
34  constexpr decltype(auto)
35  get_mdspan(T&& t)
36  {
38  }
39 
40 
41 }
42 
43 #endif
The root namespace for OpenKalman.
Definition: basics.hpp:34
Forward declaration of object_traits, which must be defined for all objects used in OpenKalman...
Definition: object_traits.hpp:38
Definition of object_traits for std::mdspan.
Definition of object_traits for std::mdspan.
Definition for indexible.
decltype(auto) constexpr get_mdspan(T &&t)
Get the mdspan associated with indexible object T.
Definition: get_mdspan.hpp:35