|
From: SourceForge.net <no...@so...> - 2012-05-14 14:26:25
|
Bugs item #3526577, was opened at 2012-05-14 07:26 Message generated for change (Tracker Item Submitted) made by fabioramponi You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3526577&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: Fabio Ramponi (fabioramponi) Assigned to: Nobody/Anonymous (nobody) Summary: BicubicSpline update() doesn't work Initial Comment: The calculate() method in BicubicSpline is called every time the linked data matrix (zData_) changes but, due to the reserve() at line 58 of bicubicsplineinterpolation.hpp and the subesquent push_back(), every time I call update() new splines are added to the splines_ vector instead of substituting the existing ones. My suggestion is to use resize instead of reserve, and then simply fill the allocated vector splines_. In the attached file my proposal of change for the file bicubicsplineinterpolation.hpp, affecting only lines 58 and 60. Best regards, Fabio ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3526577&group_id=12740 |