Get the matrix stride type for a row vector, given a matrix storage order. More...
#include <roboptim/core/detail/utility.hh>
Public Types | |
typedef Eigen::InnerStride<(SO==Eigen::RowMajor)?1:-1 > | type |
Get the matrix stride type for a row vector, given a matrix storage order.
This solves compiler errors in Eigen when dealing with Eigen::Refs, row vectors and different storage orders.
SO | storage order (Eigen::ColMajor or Eigen::RowMajor). |
typedef Eigen::InnerStride<(SO == Eigen::RowMajor)? 1:-1> roboptim::detail::row_vector_stride< SO >::type |