I am using MatrixXd matrices from Eigen on my code, and at a certain point I need a 3D one. Since Eigen does not have tridimensional matrix types, as it is optimized just for li
Just use operator()(int,int)
CVM[k].operator()(i,j) = 47;
or
CVM[k](i,j) = 47;
Eigen::MatrixXd* b = &CVM[k]; b->operator()(i,j) = 47;
Here k is the matrix, i is the row, and j is the column.