Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/BondFunctions-via-SWIG-tp14725p14728.html
Hello Simon,
the methods you need are all exported:
$ python
Python 2.7.5+ (default, Sep 19 2013, 13:49:51)
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from QuantLib import *
>>> CashFlows.duration
<built-in function CashFlows_duration>
>>> CashFlows.bps
<built-in function CashFlows_bps>
>>> CashFlows.convexity
<built-in function CashFlows_convexity>
>>> BondFunctions.convexity
<built-in function BondFunctions_convexity>
>>> BondFunctions.duration
<built-in function BondFunctions_duration>
>>>
My guess is that you're using the CashFlow class instead (yes, it's
unfortunate that the names are so similar...)
On Thu, Dec 12, 2013 at 5:05 PM, smazzucca <
[hidden email]> wrote:
> Was anybody been successful in using QL via SWIG ? So far most of what I need
> is not there...
>
> [Question 1]
> Right now I'm trying to access convexity / bps / duration from CashFlows but
> I don't see any of them (I do see amount() and date()). Am I supposed to ?
>
> [Question 2]
> I see that convexity and duration are available via BondFunctions. Can
> BondFunctions be converted with SWIG ?
>
> Thank you,
> Simon
>
>
>
> --
> View this message in context:
http://quantlib.10058.n7.nabble.com/BondFunctions-via-SWIG-tp14725.html> Sent from the quantlib-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk> _______________________________________________
> QuantLib-users mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/quantlib-users--
<
https://implementingquantlib.blogspot.com>
<
https://twitter.com/lballabio>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users