« Return to Thread: Non copyable curves.

Re: Non copyable curves.

by Luigi Ballabio :: Rate this Message:

Reply to Author | View in Thread

On Thu, 2008-05-29 at 10:50 +0000, Simon Ibbotson - Straumur wrote:
> For this improvement (copy-constructors for curves), I've developed some
> code for this method. The current copy behaviour is to keep the linkage
> to the original Interpolation::Impl object. We need to create a new
> object derived from Interpolation::Impl and link the new object to a new
> vector of data.

Simon,
        it's probably easier than that. We can just use the interpolator (which
the curves store) to recreate the interpolation based on the
newly-copied data vectors.

Luigi


--

If you can't convince them, confuse them.
-- Harry S. Truman



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
QuantLib-dev@...
https://lists.sourceforge.net/lists/listinfo/quantlib-dev

 « Return to Thread: Non copyable curves.