Re: How to calculate IRR using Cashflows:yield()

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/How-to-calculate-IRR-using-Cashflows-yield-tp8734p8736.html

On Tue, Feb 14, 2012 at 9:53 PM, Peter Caspers <[hidden email]> wrote:

> By the way, I think there is a litte bug in lines 625 and following in
> cashflows.cpp, which should be
>
>             if (settlementDate == Date())
>                 settlementDate_ = Settings::instance().evaluationDate();
>
>                 if (npvDate == Date())
>                     npvDate_ = settlementDate;
>
> otherwise you can not leave out the defaulted parameters settlementDate und
> npvDate in the yield( ) - call.

Yes, you're right---it was already so in the other methods. I've just
committed the fix.

Thanks for the heads-up,
    Luigi

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users