16 #ifndef OPENKALMAN_EIGEN_TRAITS_BLOCK_HPP 17 #define OPENKALMAN_EIGEN_TRAITS_BLOCK_HPP 19 #include <type_traits> 24 template<
typename XprType,
int BlockRows,
int BlockCols,
bool InnerPanel>
30 using Xpr = Eigen::Block<XprType, BlockRows, BlockCols, InnerPanel>;
32 using XprTypeNested =
typename Eigen::internal::ref_selector<XprType>::non_const_type;
36 template<
typename Arg>
39 return std::forward<Arg>(arg).nestedExpression();
43 template<
typename Arg>
44 static constexpr
auto get_constant(
const Arg& arg)
53 #endif //OPENKALMAN_EIGEN_TRAITS_BLOCK_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
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