|
From: Yee M. C. <ym...@ya...> - 2008-03-29 00:57:06
|
Hi Chris Thanks for your hint. I added the code to re-use intermediate results in the analytic GJR-GARCH engine. I also fixed a bug in gjrgarchprocess. Please update my previously sent files with these five attached files Attached files: test-suite/gjrgarchmodel.cpp ql/processes/gjrgarchprocess.hpp ql/processes/gjrgarchprocess.cpp ql/pricingengines/vanilla/analyticgjrgarchengine.hpp ql/pricingengines/vanilla/analyticgjrgarchengine.cpp Yee Man --- Chris Kenyon <chr...@ya...> wrote: > > Hi, > > re: > " > I can speed it up quite a bit if I can re-use > some > intermediate results when some parameters are the > same. But this requires me to introduce some data > members to AnalyticGJRGARCHengine and assign values > to > them during calculate(). But calculate() is a const > function, so I can't really do that. What do you > think > I should do? > " > > If you need some local data, then declare it mutable > (=never const), > this overrides the const in calculate(). Use with > care: > http://www.highprogrammer.com/alan/rants/mutable.html > This is done elsewhere in QL. > > Regards, > Chris > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace> _______________________________________________ > QuantLib-dev mailing list > Qua...@li... > https://lists.sourceforge.net/lists/listinfo/quantlib-dev > ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |