|
From: Andreas S. <an...@sp...> - 2010-12-26 17:46:18
|
Hi Luigi, Am 24.12.2010 11:01, schrieb Luigi Ballabio: > Andreas, > I'm not sure, but I think it was a common theme of the market-model > implementation that vectors should be initialized at the correct size by > the calling code before being passed to methods (efficiency reasons and > such.) Adding a resize() shouldn't cost much, but I'd leave the > decision to Mark Joshi as he's the main developer of that part of the > library (Mark, are you reading this? Any thoughts?) Agreed. The point here, however, is that the calling object (PathwiseAccountingEngine), initializes the factor variable to be of size "numberOfProducts"... Rgds, Andreas |