Login  Register

Re: Passing CubicSplines

Posted by Luigi Ballabio on Jul 12, 2006; 10:43am
URL: http://quantlib.414.s1.nabble.com/Passing-CubicSplines-tp4913p4915.html


On 07/12/2006 10:30:22 AM, Ferdinando Ametrano wrote:
> you're right: in the current design the interpolation classes do not
> copy the x,y arrays, so it's up to the user to ensure they do not get
> destroyed while still needed.
> I'm not in favour of this behaviour, and this might change if Luigi
> agrees.

I'm not extremely happy about it either. On the other hand, storing  
iterators allows the interpolation to maintain a link to the original  
values and to update itself when they change; copying the values would  
prevent this.

Luigi



----------------------------------------

The rule on staying alive as a forecaster is to give 'em a number or
give 'em a date, but never give 'em both at once.
-- Jane Bryant Quinn