Fixed issue #734 (thanks to Philipp Büttgenbach for reporting the issue and proposing a fix). Kept ColMajor layout if possible in order to keep derivatives of the same order adjacent in memory.
Fixed issue #734 (thanks to Philipp Büttgenbach for reporting the issue and proposing a fix).
Kept ColMajor layout if possible in order to keep derivatives of the same order adjacent in memory.

rotorliu/eigen,madlib/eigen_backup,rotorliu/eigen,madlib/eigen_backup,rotorliu/eigen,mjbshaw/Eigen,mjbshaw/Eigen,madlib/eigen_backup,mjbshaw/Eigen,rotorliu/eigen,mjbshaw/Eigen,madlib/eigen_backup