[ quantlib-Bugs-2884530 ] montecarlomodel.hpp

View: New views
1 Messages — Rating Filter:   Alert me  

[ quantlib-Bugs-2884530 ] montecarlomodel.hpp

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2884530, was opened at 2009-10-23 09:55
Message generated for change (Tracker Item Submitted) made by riccardolongoni
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2884530&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Riccardo (riccardolongoni)
Assigned to: Nobody/Anonymous (nobody)
Summary: montecarlomodel.hpp

Initial Comment:
In file motecarlomodel.hpp, method MonteCarloModel<MC,RNG,S>::addSamples, line nb 99 reads:

sample_type path = pathGenerator_->next();

Therefore a copy of path is made. This is not necessary, and in fact you can replace it with

const sample_type & path = pathGenerator_->next();

This will improve the performances of the MonteCarlo simulations.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2884530&group_id=12740

------------------------------------------------------------------------------
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
QuantLib-dev@...
https://lists.sourceforge.net/lists/listinfo/quantlib-dev