Initialization of Eigen::MatrixXd failes when one of the ColsAtCompileTime==1 and RowMajor on for the argument
Submitted by Justin Carpentier
Assigned to Nobody
Link to original bugzilla bug (#1722)
Description
Dear Eigen's developers,
I encounter a compilation issue when trying to solve the small lines of:
#include <Eigen/Core>
int main(int, char**)
{
using namespace Eigen;
const DenseIndex size = 100;
Matrix<double,Dynamic,1,RowMajor> row_vec(size);
MatrixXd row_vec_dyn(row_vec);
return 0;
}
This seems due to the lines:
EIGEN_STATIC_ASSERT((EIGEN_IMPLIES(MaxRowsAtCompileTime==1 && MaxColsAtCompileTime!=1, (Options&RowMajor)==RowMajor)
&& EIGEN_IMPLIES(MaxColsAtCompileTime==1 && MaxRowsAtCompileTime!=1, (Options&RowMajor)==0)
in src/Core/PlainObjectBase.h
I can remove those lines and make a new PR to the official repo. What do you think?
Thanks in advance for your help,
Best,
Justin
Edited by Eigen Bugzilla