Re: [eigen] Parameters in Levenberg Marquard algorithm of wrong type? |

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

*To*: <eigen@xxxxxxxxxxxxxxxxxxx>*Subject*: Re: [eigen] Parameters in Levenberg Marquard algorithm of wrong type?*From*: "Claas H. Köhler" <claas.koehler@xxxxxx>*Date*: Wed, 21 Mar 2012 08:47:41 +0100*Organization*: Deutsches Zentrum für Luft-und Raumfahrt

Hi Thomas and Tim! Thanks for the quick reply.

- gnorm - temp1, temp2 and temp - ratio - pnorm - fnorm1 - actred - dirder - prered

Regards Claas On 20/03/12 21:35, orzel@xxxxxxxxxxxxxxx wrote:

They way the class is used is to do something along lm.minimizeOptimumStorageInit() while (...) { lm.minimizeOptimumStorageOneStep(x); } That is, the loop is handled 'from outside'. To do this, you need the class to store all temporaries Thomas On 20/03/2012 19:47, Tim Holy wrote:Hi Claas, On Tuesday, March 20, 2012 07:19:31 am Claas H. Köhler wrote:- Is there a reason why all local temporary variables (e.g temp, temp1, pnorm...) are defined as class members, instead of defining locally where needed?I don't know specifically for this case, but in general it's for cases where you call the same algorithm many times in one program. If you put them in the class, you only have to allocate the storage once, when you first construct the solver. If they are local to the function, you have to allocate them each time the function is called. In many cases, that's a major overhead and significantly hurts performance. Best, --Tim

**References**:**Re: [eigen] Eigen 3.0.5 Could NOT find FFTW (missing: FFTW_INCLUDES)***From:*Claas H . Köhler

**Re: [eigen] Parameters in Levenberg Marquard algorithm of wrong type?***From:*orzel

**Re: [eigen] Parameters in Levenberg Marquard algorithm of wrong type?***From:*"Claas H. Köhler"

**Re: [eigen] Parameters in Levenberg Marquard algorithm of wrong type?***From:*Tim Holy

**Re: [eigen] Parameters in Levenberg Marquard algorithm of wrong type?***From:*orzel

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Parameters in Levenberg Marquard algorithm of wrong type?** - Next by Date:
**[eigen] compile with gcc-4.8.0-ptr warnings** - Previous by thread:
**Re: [eigen] Parameters in Levenberg Marquard algorithm of wrong type?** - Next by thread:
**[eigen] Please announce API changes!**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |