Correct usage of the Eigen::Ref class
In general, using a non const reference like Ref<T>& is never a good idea because this will only work if the caller already has a Ref<T> object at hand. This discards 5 and 7. The cases 3 and 4 does not make sense, and they won’t compile in general. Then, there is not much difference … Read more