Konstantin, We are close then. Yes optimization should use vector methods as possible.
But visitor functions are very easy to add in an abstract class. They impose very little burden on the implementor. On Sun, Dec 30, 2012 at 8:52 AM, Konstantin Berlin <kber...@gmail.com>wrote: > I think we might have a misunderstanding. What I am discussing is not the > general implementation for a matrix, but the base interface that would be > required for input into optimizers. I was saying that there should not be a > burden of implementing visitor pattern for users creating a custom class > for optimization input, if it is not used internally by the optimizers.