Re: Interpolator semantics
Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Interpolator-semantics-tp10936p10937.html
On 11/15/2005 05:15:09 AM, Joseph Wang wrote:
> I'd like to use the interpolation classes as functors, but it seems
> to be difficult because the operator takes both a the domain variable
> and an allowExtrapolation. I could try using bind2nd but I don't
> think that there is an adaptable typedef there.
Joe,
the extrapolation parameter is optional, so the interpolations
can be used as a unary function. In what way it doesn't work? Is it
because you do want to pass the parameter?
Later,
Luigi
----------------------------------------
Olmstead's Law:
After all is said and done, a hell of a lot more is said
than done.