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>

List of all members.

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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines