All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
roboptim::detail::row_vector_stride< SO > Struct Template Reference

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
 

Detailed Description

template<int SO>
struct roboptim::detail::row_vector_stride< SO >

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.

Template Parameters
SOstorage order (Eigen::ColMajor or Eigen::RowMajor).

Member Typedef Documentation

template<int SO>
typedef Eigen::InnerStride<(SO == Eigen::RowMajor)? 1:-1> roboptim::detail::row_vector_stride< SO >::type