|Re: [eigen] numerical differentiation|
[ Thread Index |
| More lists.tuxfamily.org/eigen Archives
Well, anyway, i've put one in unsupported/NumericalDiff on my eigen fork, it
provides Forward and Central, with (quite basic) unit tests :
I use a template parameter 'mode' to select which one is used... and i have
two questions related to this:
* in the code i use a switch(mode), in the hope that the compiler will
optimize this and only the relevant code will be compiled-in, and no test will
be made at run-time for the switch... can you confirm ?
* i'm afraid that the enum for the mode is cluttering the namespace.. how
could i do better ?
In data lunedì 28 settembre 2009 01:50:15, Thomas Capricelli ha scritto:
> Is anybody working on providing 'numerical differenciation' for eigen ?
> libmv has something approaching (they use eigen) here:
> but i'm not sure how general it can be made.
> Ideally, there would be NumericalDifferenciation using forward difference,
> central difference, and some higher order formula
Thomas Capricelli <orzel@xxxxxxxxxxxxxxx>