16 #ifndef OPENKALMAN_EIGEN_TRAITS_MAP_HPP 17 #define OPENKALMAN_EIGEN_TRAITS_MAP_HPP 19 #include <type_traits> 24 template<
typename PlainObjectType,
int MapOptions,
typename Str
ideType>
30 using Xpr = Eigen::Map<PlainObjectType, MapOptions, StrideType>;
35 template<
typename Arg>
38 return *std::forward<Arg>(arg).data();
47 static constexpr
Layout layout = std::is_same_v<StrideType, Eigen::Stride<0, 0>> ? layout_of_v<PlainObjectType> :
Layout::stride;
53 #endif //OPENKALMAN_EIGEN_TRAITS_MAP_HPP Definition: indexible_object_traits.hpp:36
Definition: basics.hpp:41
Trait object providing get and set routines.
Definition: eigen-forward-declarations.hpp:502
Definition: eigen-comma-initializers.hpp:20
A generalization of the above: a custom stride is specified for each index.
Layout
The layout format of a multidimensional array.
Definition: global-definitions.hpp:47
decltype(auto) constexpr nested_object(Arg &&arg)
Retrieve a nested object of Arg, if it exists.
Definition: nested_object.hpp:34