When the Matrix argument is defined as constant I get
.resize(rows,cols) Matrix const MatrixXd as 'this' argument discards qualifiers error
void (const Eigen::MatrixXd &X){
X.resize(cols, rows) }
returns an error but this works as expected:
void(Eigen::MatrixXd &X){
X.resize(cols, rows)}
I'm not too familiar with c++ (other than using it for this class) and am wondering what this means?
Thanks for any pointers.