16 #ifndef OPENKALMAN_EIGEN_TRAITS_VECTORBLOCK_HPP 17 #define OPENKALMAN_EIGEN_TRAITS_VECTORBLOCK_HPP 19 #include <type_traits> 24 template<
typename VectorType,
int Size>
34 template<
typename Arg>
38 constexpr
bool is_row_major = (Eigen::internal::traits<std::decay_t<typename Arg::NestedExpression>>::Flags & Eigen::RowMajorBit) != 0x0;
39 return std::integral_constant<std::size_t, is_row_major ? 1 : 0>{};
43 template<
typename Arg>
46 return std::forward<Arg>(arg).nestedExpression();
53 template<
typename Arg>
54 static constexpr
auto get_constant(
const Arg& arg)
Definition: basics.hpp:41
constexpr auto count_indices(const T &)
Get the number of indices necessary to address all the components of an indexible object...
Definition: count_indices.hpp:51
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 auto constant_value(T &&t)
The constant value associated with a constant_object or constant_diagonal_object. ...
Definition: constant_value.hpp:37
decltype(auto) constexpr nested_object(Arg &&arg)
Retrieve a nested object of Arg, if it exists.
Definition: nested_object.hpp:35