5 #ifndef __pinocchio_math_matrix_block_hpp__ 6 #define __pinocchio_math_matrix_block_hpp__ 18 typedef typename Mat::template FixedSegmentReturnType<NV>::Type
Type;
19 typedef typename Mat::template ConstFixedSegmentReturnType<NV>::Type
ConstType;
29 return mat.template segment<NV>(start);
39 return mat.template segment<NV>(start);
45 typedef typename Mat::template NColsBlockXpr<NV>::Type
Type;
46 typedef typename Mat::template ConstNColsBlockXpr<NV>::Type
ConstType;
56 return mat.template middleCols<NV>(start);
66 return mat.template middleCols<NV>(start);
72 typedef typename Mat::template NRowsBlockXpr<NV>::Type
Type;
73 typedef typename Mat::template ConstNRowsBlockXpr<NV>::Type
ConstType;
83 return mat.template middleRows<NV>(start);
93 return mat.template middleRows<NV>(start);
99 typedef Eigen::Block<Mat, NV, NV>
Type;
100 typedef const Eigen::Block<const Mat, NV, NV>
ConstType;
105 block(
const Eigen::MatrixBase<D> & mat,
113 return mat.template block<NV,NV>(row_id,col_id);
126 return mat.template block<NV,NV>(row_id,col_id);
136 typedef typename Mat::SegmentReturnType
Type;
146 return mat.segment(start,size);
155 return mat.segment(start,size);
161 typedef typename Mat::ColsBlockXpr
Type;
171 return mat.middleCols(start,size);
180 return mat.middleCols(start,size);
186 typedef typename Mat::RowsBlockXpr
Type;
196 return mat.middleRows(start,size);
205 return mat.middleRows(start,size);
211 typedef Eigen::Block<Mat>
Type;
217 block(
const Eigen::MatrixBase<D> & mat,
223 return mat.block(row_id,col_id,row_size_block,col_size_block);
234 return mat.block(row_id,col_id,row_size_block,col_size_block);
239 #endif // ifndef __pinocchio_math_matrix_block_hpp__ Mat::ConstRowsBlockXpr ConstType
Eigen::Block< Mat, NV, NV > Type
#define PINOCCHIO_UNUSED_VARIABLE(var)
Helper to declare that a parameter is unused.
Mat::template ConstFixedSegmentReturnType< NV >::Type ConstType
Mat::template ConstNColsBlockXpr< NV >::Type ConstType
static RowsReturn< D >::Type middleRows(Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index start, typename Eigen::DenseBase< D >::Index size=NV)
static ColsReturn< D >::Type middleCols(Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index start, typename Eigen::DenseBase< D >::Index size=NV)
static ColsReturn< D >::ConstType middleCols(const Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index start, typename Eigen::DenseBase< D >::Index size)
static BlockReturn< D >::ConstType block(const Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index row_id, typename Eigen::DenseBase< D >::Index col_id, typename Eigen::DenseBase< D >::Index row_size_block=NV, typename Eigen::DenseBase< D >::Index col_size_block=NV)
static BlockReturn< D >::ConstType block(const Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index row_id, typename Eigen::DenseBase< D >::Index col_id, typename Eigen::DenseBase< D >::Index row_size_block, typename Eigen::DenseBase< D >::Index col_size_block)
Mat::template NColsBlockXpr< NV >::Type Type
static SegmentReturn< D >::Type segment(Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index start, typename Eigen::DenseBase< D >::Index size=NV)
Mat::ConstColsBlockXpr ConstType
static SegmentReturn< D >::ConstType segment(const Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index start, typename Eigen::DenseBase< D >::Index size)
static RowsReturn< D >::ConstType middleRows(const Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index start, typename Eigen::DenseBase< D >::Index size)
const Eigen::Block< const Mat > ConstType
static ColsReturn< D >::ConstType middleCols(const Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index start, typename Eigen::DenseBase< D >::Index size=NV)
static ColsReturn< D >::Type middleCols(Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index start, typename Eigen::DenseBase< D >::Index size)
Main pinocchio namespace.
Mat::template FixedSegmentReturnType< NV >::Type Type
static BlockReturn< D >::Type block(Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index row_id, typename Eigen::DenseBase< D >::Index col_id, typename Eigen::DenseBase< D >::Index row_size_block, typename Eigen::DenseBase< D >::Index col_size_block)
Mat::ConstSegmentReturnType ConstType
Mat::template ConstNRowsBlockXpr< NV >::Type ConstType
const Eigen::Block< const Mat, NV, NV > ConstType
Mat::template NRowsBlockXpr< NV >::Type Type
Mat::SegmentReturnType Type
static RowsReturn< D >::Type middleRows(Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index start, typename Eigen::DenseBase< D >::Index size)
static RowsReturn< D >::ConstType middleRows(const Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index start, typename Eigen::DenseBase< D >::Index size=NV)
static BlockReturn< D >::Type block(Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index row_id, typename Eigen::DenseBase< D >::Index col_id, typename Eigen::DenseBase< D >::Index row_size_block=NV, typename Eigen::DenseBase< D >::Index col_size_block=NV)
static SegmentReturn< D >::ConstType segment(const Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index start, typename Eigen::DenseBase< D >::Index size=NV)
static SegmentReturn< D >::Type segment(Eigen::MatrixBase< D > &mat, typename Eigen::DenseBase< D >::Index start, typename Eigen::DenseBase< D >::Index size)