This looks much better to me. Not only does it allow the solver to see the internal state of the decomposition. It also lets the decomposition pick just which kind of solver would be good/right to use.

On Dec 19, 2008, at 16:38, Luc Maisonobe <[email protected]> wrote:

The current status is something similar to:

  RealVector x = new XyzSolver(new XyzDecomposition(a)).solve(b);

I would like to change it to:

 RealVector x = new XyzDecomposition(a).getSolver().solve(b);

The reason for that is that it allows to have a solver that is built
from the internal state of the decomposition instead of using its public
API. This allows better performances as we don't need to build
explicitly some matrices.

Any thoughts about this change ?

Luc

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to