Eigen - get a matrix from a map?
c++, eigen
Solution
Just use `operator=`:
MatrixXd mat;
mat = Map<MatrixXd>(data, rows, cols);
Problem
I'm using Eigen::Map to get access to create an object from a C-array. I would like to save that object as a member variable of type MatrixXf. How do I do that? I couldn't find a way to convert the Map to a Matrix. Thanks.