16 #ifndef OPENKALMAN_EIGEN_TRAITS_REF_HPP 17 #define OPENKALMAN_EIGEN_TRAITS_REF_HPP 19 #include <type_traits> 24 template<
typename PlainObjectType,
int Options,
typename Str
ideType>
28 template<
typename Arg>
29 static constexpr
auto get_constant(
const Arg& arg)
32 return constant_value<PlainObjectType> {};
34 return std::monostate {};
37 template<
typename Arg>
38 static constexpr
auto get_constant_diagonal(
const Arg& arg)
40 if constexpr (
values::fixed<constant_diagonal_value<PlainObjectType>>)
41 return constant_diagonal_value<PlainObjectType> {};
43 return std::monostate {};
47 static constexpr data_layout layout = std::is_same_v<StrideType, Eigen::Stride<0, 0>> ? layout_of_v<PlainObjectType> : data_layout::stride;
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
constexpr bool fixed
T is a value that is determinable at compile time.
Definition: fixed.hpp:66