Eigen is a c++ linear algebra library http://eigen.tuxfamily.org.
It\'s easy to work with basic data types, like basic float arrays, and just copy it to device memory an
If all you want is to access the data of an Eigen::Matrix via a raw C pointer, then you can use the .data() function. Coefficient are stored sequentially in memory in a column major order by default, or row major if you asked for:
Eigen::Matrix
.data()
MatrixXd A(10,10); double *A_data = A.data();