> Hi, > I am planning to do that, but my data matrix is pretty large (say > 100000 x 10), packing and unpacking for each minimization will be > expensive.
I'm suggesting not packing and unpacking but merely keeping the data matrix and the vector in the same memory locations. That said, how much luck do you expect having on a 1,000,000 degree-of-freedom minimization problem? :P - Rhys