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)
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 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