You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(17) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(23) |
| 2002 |
Jan
(18) |
Feb
(20) |
Mar
(22) |
Apr
(41) |
May
(28) |
Jun
(25) |
Jul
(10) |
Aug
(7) |
Sep
(5) |
Oct
(20) |
Nov
(13) |
Dec
(11) |
| 2003 |
Jan
(28) |
Feb
(5) |
Mar
(6) |
Apr
(5) |
May
(17) |
Jun
(6) |
Jul
(45) |
Aug
(35) |
Sep
(24) |
Oct
(50) |
Nov
(53) |
Dec
(6) |
| 2004 |
Jan
(4) |
Feb
(10) |
Mar
(52) |
Apr
(46) |
May
(8) |
Jun
(25) |
Jul
(12) |
Aug
(6) |
Sep
(8) |
Oct
(8) |
Nov
(9) |
Dec
(7) |
| 2005 |
Jan
(18) |
Feb
(60) |
Mar
(19) |
Apr
(26) |
May
(14) |
Jun
(27) |
Jul
(8) |
Aug
(15) |
Sep
(19) |
Oct
(53) |
Nov
(20) |
Dec
(23) |
| 2006 |
Jan
(16) |
Feb
(27) |
Mar
(33) |
Apr
(51) |
May
(36) |
Jun
(25) |
Jul
(54) |
Aug
(30) |
Sep
(25) |
Oct
(67) |
Nov
(43) |
Dec
(13) |
| 2007 |
Jan
(23) |
Feb
(27) |
Mar
(55) |
Apr
(79) |
May
(60) |
Jun
(66) |
Jul
(46) |
Aug
(30) |
Sep
(90) |
Oct
(49) |
Nov
(85) |
Dec
(74) |
| 2008 |
Jan
(68) |
Feb
(59) |
Mar
(64) |
Apr
(28) |
May
(66) |
Jun
(35) |
Jul
(73) |
Aug
(76) |
Sep
(65) |
Oct
(46) |
Nov
(41) |
Dec
(19) |
| 2009 |
Jan
(46) |
Feb
(90) |
Mar
(51) |
Apr
(104) |
May
(13) |
Jun
(24) |
Jul
(20) |
Aug
(39) |
Sep
(109) |
Oct
(101) |
Nov
(117) |
Dec
(57) |
| 2010 |
Jan
(55) |
Feb
(42) |
Mar
(39) |
Apr
(22) |
May
(33) |
Jun
(41) |
Jul
(25) |
Aug
(52) |
Sep
(75) |
Oct
(60) |
Nov
(62) |
Dec
(52) |
| 2011 |
Jan
(70) |
Feb
(31) |
Mar
(26) |
Apr
(28) |
May
(17) |
Jun
(38) |
Jul
(51) |
Aug
(35) |
Sep
(27) |
Oct
(35) |
Nov
(10) |
Dec
(20) |
| 2012 |
Jan
(21) |
Feb
(29) |
Mar
(13) |
Apr
(37) |
May
(33) |
Jun
(12) |
Jul
(34) |
Aug
(27) |
Sep
(29) |
Oct
(35) |
Nov
(58) |
Dec
(27) |
| 2013 |
Jan
(27) |
Feb
(16) |
Mar
(40) |
Apr
(16) |
May
(34) |
Jun
(37) |
Jul
(6) |
Aug
(3) |
Sep
(4) |
Oct
(49) |
Nov
(13) |
Dec
(12) |
| 2014 |
Jan
(15) |
Feb
(21) |
Mar
(11) |
Apr
(13) |
May
(27) |
Jun
(60) |
Jul
(19) |
Aug
(29) |
Sep
(20) |
Oct
(28) |
Nov
(41) |
Dec
(15) |
| 2015 |
Jan
(33) |
Feb
(29) |
Mar
(26) |
Apr
(17) |
May
(2) |
Jun
(13) |
Jul
(21) |
Aug
(30) |
Sep
(22) |
Oct
(15) |
Nov
(46) |
Dec
(20) |
| 2016 |
Jan
(6) |
Feb
(5) |
Mar
(9) |
Apr
(15) |
May
(9) |
Jun
(4) |
Jul
(3) |
Aug
(4) |
Sep
(39) |
Oct
(8) |
Nov
(5) |
Dec
(8) |
| 2017 |
Jan
(4) |
Feb
(14) |
Mar
(4) |
Apr
(16) |
May
(5) |
Jun
(10) |
Jul
(25) |
Aug
(2) |
Sep
(5) |
Oct
(11) |
Nov
(8) |
Dec
(11) |
| 2018 |
Jan
(7) |
Feb
(4) |
Mar
|
Apr
(1) |
May
(4) |
Jun
(21) |
Jul
(8) |
Aug
(3) |
Sep
(2) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2019 |
Jan
(1) |
Feb
(5) |
Mar
(18) |
Apr
(9) |
May
(5) |
Jun
(21) |
Jul
(25) |
Aug
(25) |
Sep
(4) |
Oct
(2) |
Nov
(2) |
Dec
(5) |
| 2020 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
(2) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
(2) |
Nov
(6) |
Dec
|
| 2021 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(4) |
Jun
|
Jul
(1) |
Aug
|
Sep
(2) |
Oct
(9) |
Nov
(1) |
Dec
(5) |
| 2022 |
Jan
(7) |
Feb
(3) |
Mar
|
Apr
(2) |
May
(5) |
Jun
(3) |
Jul
(3) |
Aug
(3) |
Sep
(3) |
Oct
(14) |
Nov
|
Dec
(1) |
| 2023 |
Jan
(10) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
(2) |
Jul
(2) |
Aug
(1) |
Sep
|
Oct
(5) |
Nov
|
Dec
|
| 2024 |
Jan
(8) |
Feb
|
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
(4) |
Aug
(5) |
Sep
|
Oct
(4) |
Nov
(1) |
Dec
(1) |
| 2025 |
Jan
(3) |
Feb
(2) |
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2026 |
Jan
(1) |
Feb
(12) |
Mar
|
Apr
(2) |
May
(8) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Dirk E. <ed...@de...> - 2009-11-04 19:49:26
|
On 4 November 2009 at 18:15, Luigi Ballabio wrote: | Report here any problems you may have. As usual, I'd particularly | appreciate if you tried the library on cygwin or mingw, as I don't have | a test environment for those platforms. MinGW success using Dev-C++ (which I last used to build QL 0.9.7); also built one example (FittedBondCurve) which runs. Looks good. Also updating the Debian package to 0.9.9~20091104-1. Dirk -- Three out of two people have difficulties with fractions. |
|
From: Luigi B. <lui...@gm...> - 2009-11-04 17:15:47
|
Hi all, as it turns out, the latest tarballs weren't the final ones after all. So, if you have any more cycles to spare, please download and try out the new tarballs at <http://quantlib.org/prerelease/>. If nobody reports any showstoppers by next Wednesday, these ones are going to be released. Report here any problems you may have. As usual, I'd particularly appreciate if you tried the library on cygwin or mingw, as I don't have a test environment for those platforms. Also, as we're close to release, I'm partially freezing the 0.9.9 branch; please don't commit anything in its QuantLib and QuantLib-SWIG modules without checking with me first. Thanks, Luigi -- There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. -- C. A. R. Hoare |
|
From: Alexander L. <ale...@go...> - 2009-11-04 16:12:06
|
Ciao Nando,
I had some problems with QuantLib.xla and did som improvements.
First of all:
Module -> ObjectBuilder -> Function ListFilesInFolder
...
If FileItem.Type = "XML Document" - doesn't work for the German version :-(
I extended it with "XML-Dokument"
...
Maybe there is a better idea how to check the file. For example using its
extension.
Second:
Module -> ObjectBuilder -> Function buildConstructor
...
values(1,1) = "=ohRangeRetrieveError(R[-1]C)" doesn't work for the older
excel version (2002)
...
I exchanged it with values(1,1) = "=ohRangeRetrieveError(" &
dest.offset(0,1).Cells.Address & ")"
...
Hope it will be helpfull. I've spent some time trying to figure out the
problem.
Ciao,
Alexander
--
View this message in context: http://old.nabble.com/QuantLib.xla-improvement-tp26199309p26199309.html
Sent from the quantlib-dev mailing list archive at Nabble.com.
|
|
From: Ferdinando A. <na...@am...> - 2009-11-04 11:51:17
|
On Tue, Nov 3, 2009 at 8:41 PM, Alexander Lotter <ale...@go...> wrote: > I've just renamed this file (no file - no problem as written in your comment > in svn) and it worked. So please take a look at it if you have time and > update the svn. I've fixed the file on the 0.9.9 branch, so now it should work with the xml config file too ciao -- Nando |
|
From: Chris K. <chr...@ya...> - 2009-11-04 10:51:19
|
Hi, on OS X 10.6.1 (Snow Leopard) + boost 1.40.0 build OK tests pass, but fails on exiting with: *** No errors detected quantlib-test-suite(15731) malloc: *** error for object 0x3000102504200: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap Best regards, Chris |
|
From: Ferdinando A. <na...@am...> - 2009-11-04 10:22:19
|
On Tue, Nov 3, 2009 at 8:33 PM, Alexander Lotter <ale...@go...> wrote: > Should I use the bug tracker for such small things? I've fixed it on the 0.9.9 branch thank you ciao -- Nando |
|
From: Alexander L. <ale...@go...> - 2009-11-03 19:42:10
|
I've just renamed this file (no file - no problem as written in your comment in svn) and it worked. So please take a look at it if you have time and update the svn. |
|
From: Alexander L. <ale...@go...> - 2009-11-03 19:33:30
|
No problem for me. Just wanted to let you know. Should I use the bug tracker for such small things? Ferdinando Ametrano wrote: > On Tue, Nov 3, 2009 at 2:49 PM, Alexander Lotter > <ale...@go...> wrote: > >> there is no file like register_overnighindexedswap.cpp in >> QuantLibXLStatic-Project. >> >> In QuantLibAllDynamic it is included, so there is no error compiling the >> project. >> >> Does the generation tool includes the files to the project automatically? >> > > the files are automatically generated and manually added to the > project. So it's just that it has been added to QuantLibAllDynamic and > not to QuantLibXLStatic. > It will be fixed on the trunk, in the meantime please add it manually > to your version > > ciao -- Nando > > |
|
From: Alexander L. <ale...@go...> - 2009-11-03 19:31:54
|
Hello Ferdinando,
that is what I get using vc8 and vc9 libraries. I think it is not
depending on some configuration and lib. I've just checked out a trunk
version again and there is still a problem. I can't find this tag
FeedUse in the xml and I don't understand why this is not an optional
node/attribute.
<Environment name="Local">
<FrameworkVersion>10</FrameworkVersion>
<Workbooks>C:\Projects\DevEnv\trunk\QuantLibXL\Workbooks</Workbooks>
<HelpFile>C:\Projects\DevEnv\trunk\QuantLibXL\Docs</HelpFile>
<FunctionMetadata>C:\Projects\DevEnv\trunk\QuantLibAddin\gensrc\metadata</FunctionMetadata>
<AddinList>
<Addin>
<Path>C:\Projects\DevEnv\trunk\ObjectHandler\xll\ObjectHandler-xll-vc80-mt-0_9_8.xll</Path>
<DeliveredByLauncher>False</DeliveredByLauncher>
</Addin>
<Addin>
<Path>C:\Projects\DevEnv\trunk\QuantLibXL\xll\QuantLibXLDynamic-vc80-mt-0_9_8.xll</Path>
<DeliveredByLauncher>False</DeliveredByLauncher>
</Addin>
</AddinList>
<StartupActions>
<SetEvaluationDate>False</SetEvaluationDate>
<EvaluationDate>39462</EvaluationDate>
<YieldCurveBootstrap>False</YieldCurveBootstrap>
<CapVolBootstrap>False</CapVolBootstrap>
<SwapSmileBootstrap>False</SwapSmileBootstrap>
<CalibrateCMS>False</CalibrateCMS>
<FitCMS>False</FitCMS>
<IndexesTimeSeries>False</IndexesTimeSeries>
<LoadBonds>False</LoadBonds>
<MainChecks>True</MainChecks>
<StaticData>False</StaticData>
<InitSource>Excel</InitSource>
</StartupActions>
<Variables />
</Environment>
Take care,
Alexander
Ferdinando Ametrano wrote:
> On Tue, Nov 3, 2009 at 3:32 PM, Alexander Lotter
> <ale...@go...> wrote:
>
>> I got the following error loading XLA:
>>
>> Error initializing the QuantLibXL framework: there was an error processing
>> QuantLibXL.launch.xml
>>
>> expected node with tag Environment to ahve exactly one child node with tag
>> FeedUse.
>>
>> Are there some problems with the QuantLibXL.launch.xml in trunk?
>>
>> The only thing I did with the file is - changing pathes to *.xll...
>>
>
> chances are you did more than changing paths... the error is about
> invalid xml file. Have you checked that you only have exactly one
> child node with tag FeedUse ?
>
> ciao -- Nando
>
>
|
|
From: Ferdinando A. <na...@am...> - 2009-11-03 16:05:38
|
On Tue, Nov 3, 2009 at 3:32 PM, Alexander Lotter <ale...@go...> wrote: > I got the following error loading XLA: > > Error initializing the QuantLibXL framework: there was an error processing > QuantLibXL.launch.xml > > expected node with tag Environment to ahve exactly one child node with tag > FeedUse. > > Are there some problems with the QuantLibXL.launch.xml in trunk? > > The only thing I did with the file is - changing pathes to *.xll... chances are you did more than changing paths... the error is about invalid xml file. Have you checked that you only have exactly one child node with tag FeedUse ? ciao -- Nando |
|
From: Ferdinando A. <na...@am...> - 2009-11-03 16:02:30
|
On Tue, Nov 3, 2009 at 2:49 PM, Alexander Lotter <ale...@go...> wrote: > there is no file like register_overnighindexedswap.cpp in > QuantLibXLStatic-Project. > > In QuantLibAllDynamic it is included, so there is no error compiling the > project. > > Does the generation tool includes the files to the project automatically? the files are automatically generated and manually added to the project. So it's just that it has been added to QuantLibAllDynamic and not to QuantLibXLStatic. It will be fixed on the trunk, in the meantime please add it manually to your version ciao -- Nando |
|
From: Alexander L. <ale...@go...> - 2009-11-03 14:32:35
|
Does anybody expirienced a problem loading QuantLibXL.xla from the actual trunk? I got the following error loading XLA: Error initializing the QuantLibXL framework: there was an error processing QuantLibXL.launch.xml expected node with tag Environment to ahve exactly one child node with tag FeedUse. Are there some problems with the QuantLibXL.launch.xml in trunk? The only thing I did with the file is - changing paths to *.xll... Cheers, Alexander -- View this message in context: http://old.nabble.com/QuantLibXL.xla-Problem-with-QuantLib-0.9.9-tp26160162p26160162.html Sent from the quantlib-dev mailing list archive at Nabble.com. |
|
From: Alexander L. <ale...@go...> - 2009-11-03 14:32:32
|
Does anybody expirienced a problem loading QuantLibXL.xla from the actual trunk? I got the following error loading XLA: Error initializing the QuantLibXL framework: there was an error processing QuantLibXL.launch.xml expected node with tag Environment to ahve exactly one child node with tag FeedUse. Are there some problems with the QuantLibXL.launch.xml in trunk? The only thing I did with the file is - changing pathes to *.xll... Cheers, Alexander -- View this message in context: http://old.nabble.com/QuantLibXL.xla-Problem-with-QuantLib-0.9.9-tp26160160p26160160.html Sent from the quantlib-dev mailing list archive at Nabble.com. |
|
From: Alexander L. <ale...@go...> - 2009-11-03 13:50:20
|
Dear all, I tried to build QuantLibXLStatic and get linking errors: register_all.obj: LNK2019: void __cdecl registerOvernightindexedswap... and unregisterOvernightindexedswap... QuantLib 0.9.9 QuantLibXL_full_vc8 MS VS 2005 Boost 1_40 Debug Mixed Platforms QuantLibAllDynamic_vc8.sln - works fine. This functions look to me same as the other functions that defined as extern and doesn't produce any linking error. Does anybody have an idea? Cheers Alexander -- View this message in context: http://old.nabble.com/Linking-Error-on-QuantLibXL_full-tp26160118p26160118.html Sent from the quantlib-dev mailing list archive at Nabble.com. |
|
From: Alexander L. <ale...@go...> - 2009-11-03 13:50:03
|
Update: This function was defined in register_all.cpp - which is generated automaticall but there is no file like register_overnighindexedswap.cpp in QuantLibXLStatic-Project. In QuantLibAllDynamic it is included, so there is no error compiling the project. Does the generation tool includes the files to the project automatically? In case of QuantLibXLStatic it was not done for some reason only for this one file. Does anybody had a similar problem? -- View this message in context: http://old.nabble.com/Linking-Error-on-QuantLibXL_full-tp26160118p26160127.html Sent from the quantlib-dev mailing list archive at Nabble.com. |
|
From: Luigi B. <lui...@gm...> - 2009-11-03 11:07:20
|
On Thu, 2009-10-29 at 17:59 +0000, Andrea wrote: > > There would be quite a bit of work to do. You would have to: > > - add a constructor to boost::shared_ptr in common.i so that it takes a > > pointer; > > I've got a big doubt here. > Is it safe to stick the raw pointer into a shared_ptr? Is it already owned by some other swig mechanism? You're right, the shared_ptr would take ownership against SWIG. I don't see any easy solution to this one... Another possibility would be to write a C++ payoff that adapts a Java payoff. Its constructor would take a Java instance and store it, and its operator() would use the foreign interface to call the corresponding method in the Java instance. Kind of a home-made director. I don't know if it would be possible to hide the mechanism so that it seems that the Java class inherits from Payoff, though... Luigi -- There's no sense in being precise when you don't even know what you're talking about. -- John von Neumann |
|
From: Roland L. <rol...@go...> - 2009-11-03 09:00:17
|
> > Hi all, > if you have any cycles to spare during the weekend, please download > and > try out the tarballs at <http://quantlib.org/prerelease/>. If nobody > reports any showstoppers by the middle of next week, they're going to be > the final ones. > > Report here any problems you may have. I'd particularly appreciate if > you tried the library on cygwin or mingw, as I don't have a test > environment for those platforms. > Hi Luigi, compiled and test suite completed without errors on - Mac OS X 10.5.7 with boost 1.39 - MinGW under Parallels/Vista with boost 1.34.1 Best regards, Roland |
|
From: Dirk E. <ed...@de...> - 2009-11-02 22:19:00
|
On 29 October 2009 at 15:25, Luigi Ballabio wrote: | On Sat, 2009-10-17 at 10:35 -0500, Dirk Eddelbuettel wrote: | > While working on RQuantLib [1], Khanh and I discovered a number of numerical | > issues with Cubic interpolation on yield curves. The RQuantLib side of the | > code that triggers it is actually pretty old and used to run so I am confused | > as to when this changed. | > | > A relatively simple way to trigger the same issue is to modify the | > swapvaluation.cpp example as follows: | > | > edd@ron:~/svn/quantlib/Examples/Swap$ diff -u swapvaluation.cpp.orig swapvaluation.cpp | > --- swapvaluation.cpp.orig 2008-08-01 03:55:43.000000000 -0500 | > +++ swapvaluation.cpp 2009-10-17 10:08:42.000000000 -0500 | > @@ -316,7 +316,7 @@ | > depoSwapInstruments.push_back(s10y); | > depoSwapInstruments.push_back(s15y); | > boost::shared_ptr<YieldTermStructure> depoSwapTermStructure( | > - new PiecewiseYieldCurve<Discount,LogLinear>( | > + new PiecewiseYieldCurve<Discount,Cubic>( | > settlementDate, depoSwapInstruments, | > termStructureDayCounter, | > std::vector<Handle<Quote> >(), | > | > and you get to trigger the bug as easily as | > | > edd@ron:~/svn/quantlib/Examples/Swap$ g++ -o newswap swapvaluation.cpp -lQuantLib -lm && ./newswap | | Dirk, | as of today, I couldn't reproduce the error on the 0.9.9 release branch | (branches/R000909-branch in Subversion.) The swap example runs | successfully after the change. Does it work for you? Of course it's not | picking up some other library version you installed earlier, is it? Confirmed! I (finally) got a chance to build QL 0.9.9 (using 20091023 tarballs) and things work now. Very good news. I only needed a few touchups to get RQuantLib to build with it too. So I put 0.9.9~20091023 into Debian -- and may follow up with the Nov 2 variant you released today. The full build and regression test takes well over an hour but seemingly passed each and every test. Looking forward to QL 1.0!! Dirk -- Three out of two people have difficulties with fractions. |
|
From: Luigi B. <lui...@gm...> - 2009-11-02 16:57:34
|
Hi all, if you have any cycles to spare during the weekend, please download and try out the tarballs at <http://quantlib.org/prerelease/>. If nobody reports any showstoppers by the middle of next week, they're going to be the final ones. Report here any problems you may have. I'd particularly appreciate if you tried the library on cygwin or mingw, as I don't have a test environment for those platforms. Thanks, Luigi -- There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. -- C. A. R. Hoare |
|
From: Andrea <mar...@go...> - 2009-11-01 21:02:22
|
On 31/10/09 14:15, Tito Ingargiola wrote: > > > Hi Andrea, > > Another approach you may consider is illustrated in the DiscreteHedging.java example. > Here I wanted to use Quantlib's MC capabilities but wanted the pricer to be implemented in java. > By pulling the MonteCarloModel impl into java I was able to use a pathpricer implemented in java. When you say "pulling", you mean you have rewritten it in Java, mirroring the PathPricer->JPathPricer. What I am trying to do is to have the JPathPricer automatically generated by swig. This is actually easy since JPathPricer only returns a double. My problem is the class "Option" that usually returns a shared_ptr to a "Payoff" and here I have problems. > Not sure if this is applicable to your problem, but it's an approach I've used in a number of cases to integrate quantlib and java. > You may also implement your Payoff in C++ and then expose it yourself via swig to your java.... This is certanly possible, but I would like to avoid writing any C++ and only use Java. > > Best, > > Tito. |
|
From: Tito I. <tit...@ya...> - 2009-10-31 14:16:07
|
Hi Andrea,
Another approach you may consider is illustrated in the DiscreteHedging.java example. Here I wanted to use Quantlib's MC capabilities but wanted the pricer to be implemented in java. By pulling the MonteCarloModel impl into java I was able to use a pathpricer implemented in java.
Not sure if this is applicable to your problem, but it's an approach I've used in a number of cases to integrate quantlib and java. You may also implement your Payoff in C++ and then expose it yourself via swig to your java....
Best,
Tito.
----- Original Message ----
From: Andrea <mar...@go...>
To: qua...@li...
Sent: Thu, October 29, 2009 1:59:42 PM
Subject: Re: [Quantlib-dev] QuantLib-SWING: is it possible to use polymorphism?
On 29/10/09 16:03, Luigi Ballabio wrote:
> On Wed, 2009-10-21 at 17:58 +0100, Andrea wrote:
>> On 21/10/09 15:55, Luigi Ballabio wrote:
>>> unfortunately, polymorphism doesn't currently work across
>> languages.
>>>
>> Indeed.
>> I've tried to use directors and it seems to work well if there are no
>> shared_ptr involved.
>>
>> My problem now is [...] I don't seem to be able to create a shared_ptr
>> in the target language.
>
> There would be quite a bit of work to do. You would have to:
> - add a constructor to boost::shared_ptr in common.i so that it takes a
> pointer;
I've got a big doubt here.
Is it safe to stick the raw pointer into a shared_ptr? Is it already owned by some other swig mechanism?
> - modify the exported payoff classes so that they no longer hide the
> shared_ptr (e.g., export the actual PlainVanillaPayoff, not
> PlainVanillaPayoffPtr) and enable directors;
> - export the shared_ptr<Payoff> as a separate class;
> - fix the other interfaces so that they work with the new classes.
>
> Let me know if you get stuck in any of the steps.
>
> Luigi
>
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
QuantLib-dev mailing list
Qua...@li...
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
|
|
From: Chris K. <chr...@ya...> - 2009-10-31 12:24:04
|
Hi,
yes, this was a bug (thanks Raffaele). The fix is now in the 0.99 branch as:
if ( floorPrice_(t,fStrikes_.back()) > capPrice_(t,fStrikes_.back()) ) {
logic as before.
Changing to fStrikes_.back() on both sides of the comparison ensures that the same strike is used (also as suggested), otherwise strange effects are possible.
Best regards,
Chris |
|
From: Andrea <mar...@go...> - 2009-10-29 18:00:23
|
On 29/10/09 16:03, Luigi Ballabio wrote: > On Wed, 2009-10-21 at 17:58 +0100, Andrea wrote: >> On 21/10/09 15:55, Luigi Ballabio wrote: >>> unfortunately, polymorphism doesn't currently work across >> languages. >>> >> Indeed. >> I've tried to use directors and it seems to work well if there are no >> shared_ptr involved. >> >> My problem now is [...] I don't seem to be able to create a shared_ptr >> in the target language. > > There would be quite a bit of work to do. You would have to: > - add a constructor to boost::shared_ptr in common.i so that it takes a > pointer; I've got a big doubt here. Is it safe to stick the raw pointer into a shared_ptr? Is it already owned by some other swig mechanism? > - modify the exported payoff classes so that they no longer hide the > shared_ptr (e.g., export the actual PlainVanillaPayoff, not > PlainVanillaPayoffPtr) and enable directors; > - export the shared_ptr<Payoff> as a separate class; > - fix the other interfaces so that they work with the new classes. > > Let me know if you get stuck in any of the steps. > > Luigi > > |
|
From: Luigi B. <lui...@gm...> - 2009-10-29 16:04:52
|
On Wed, 2009-10-21 at 17:58 +0100, Andrea wrote: > On 21/10/09 15:55, Luigi Ballabio wrote: > > unfortunately, polymorphism doesn't currently work across > languages. > > > Indeed. > I've tried to use directors and it seems to work well if there are no > shared_ptr involved. > > My problem now is [...] I don't seem to be able to create a shared_ptr > in the target language. There would be quite a bit of work to do. You would have to: - add a constructor to boost::shared_ptr in common.i so that it takes a pointer; - modify the exported payoff classes so that they no longer hide the shared_ptr (e.g., export the actual PlainVanillaPayoff, not PlainVanillaPayoffPtr) and enable directors; - export the shared_ptr<Payoff> as a separate class; - fix the other interfaces so that they work with the new classes. Let me know if you get stuck in any of the steps. Luigi -- Green's Law of Debate: Anything is possible if you don't know what you're talking about. |
|
From: Luigi B. <lui...@gm...> - 2009-10-29 14:28:54
|
On Sat, 2009-10-17 at 10:35 -0500, Dirk Eddelbuettel wrote: > While working on RQuantLib [1], Khanh and I discovered a number of numerical > issues with Cubic interpolation on yield curves. The RQuantLib side of the > code that triggers it is actually pretty old and used to run so I am confused > as to when this changed. > > A relatively simple way to trigger the same issue is to modify the > swapvaluation.cpp example as follows: > > edd@ron:~/svn/quantlib/Examples/Swap$ diff -u swapvaluation.cpp.orig swapvaluation.cpp > --- swapvaluation.cpp.orig 2008-08-01 03:55:43.000000000 -0500 > +++ swapvaluation.cpp 2009-10-17 10:08:42.000000000 -0500 > @@ -316,7 +316,7 @@ > depoSwapInstruments.push_back(s10y); > depoSwapInstruments.push_back(s15y); > boost::shared_ptr<YieldTermStructure> depoSwapTermStructure( > - new PiecewiseYieldCurve<Discount,LogLinear>( > + new PiecewiseYieldCurve<Discount,Cubic>( > settlementDate, depoSwapInstruments, > termStructureDayCounter, > std::vector<Handle<Quote> >(), > > and you get to trigger the bug as easily as > > edd@ron:~/svn/quantlib/Examples/Swap$ g++ -o newswap swapvaluation.cpp -lQuantLib -lm && ./newswap Dirk, as of today, I couldn't reproduce the error on the 0.9.9 release branch (branches/R000909-branch in Subversion.) The swap example runs successfully after the change. Does it work for you? Of course it's not picking up some other library version you installed earlier, is it? Later, Luigi -- It is better to know some of the questions than all of the answers. -- James Thurber |