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
Either use b->coeffRef(i,j) to get a read/write reference, or dereference b: (*b)(i,j), or use a reference for b:
b->coeffRef(i,j)
(*b)(i,j)
MatrixXd& b = CVM[k]; b(i,j) = 47;