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)
63 #endif //OPENKALMAN_EIGEN_TRAITS_VECTORBLOCK_HPP constexpr auto count_indices(const T &t)
Get the number of indices available to address the components of an indexible object.
Definition: count_indices.hpp:33
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
The constant associated with T, assuming T is a constant_matrix.
Definition: constant_coefficient.hpp:36
decltype(auto) constexpr nested_object(Arg &&arg)
Retrieve a nested object of Arg, if it exists.
Definition: nested_object.hpp:34