I'm coding in c++ and i'm using FEniCS fenics/2016.1.0. A part of my code is
Matrix A;
Vector f;
std::vector<std::shared_ptr<const DirichletBC>> dirichlet_matrici({dirichlet});
assemble_system(A,f,a,L,dirichlet_matrici);
solve(A, *(u.vector()), f);
I want so solve the system with Eigen, so I need to convert the dolfin::Matrix A and the dolfin::Vector f in Eigen objects. Is it possible? Thank you for your help
I am not sure if it is possible to do a direct conversion. However, it is possible to create a new Eigen matrix and then feed each individual value from the first matrix into the second.