Skip to content

Commit

Permalink
fix: forces ColMajor default with Eigen in case an external project h…
Browse files Browse the repository at this point in the history
…as changed it, fixes #224
  • Loading branch information
beniz committed Sep 10, 2021
1 parent ef87d3a commit a21fc5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/libcmaes/eo_matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#include <Eigen/Dense>
#include <stdlib.h>

typedef Eigen::MatrixXd dMat; // declares a column-major non-sparse matrix type of double
typedef Eigen::VectorXd dVec; // declares a vector of double.
typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor> dMat; // declares a column-major non-sparse matrix type of double
typedef Eigen::Matrix<double, Eigen::Dynamic, 1, Eigen::ColMajor> dVec; // declares a vector of double.

#include <unsupported/Eigen/MatrixFunctions>

Expand Down

0 comments on commit a21fc5e

Please sign in to comment.