I think this is only needed if class contains Eigen matrices as members.