Phil Steitz <phil.ste...@gmail.com> a écrit :
>I am getting RTE with message above when I try to run the example
>under "updating the base and differentiated objects" in the docs.
>Is this example supposed to work with the code in trunk? Also, I am
I'll look at this tomorrow, but I think for now you need to have a standalone
function, it cannot be split
as a main function calling subfunctions. The only allowed calls are the static
methods from Math/StrictMath.
I did not add our own FastMath, but it is trivial to do.
Another limitation is that your function cannot store intermediate results as
clas attributes yet.
You can look at the junit tests for what is supported. Simple expressions,
calls to traditional functions like sin, cos, exp ...,
Simple loops and conditionals, local automatic variables should all work (I
hope ...)
>assuming
>s/ForwardAlgorithmicDifferentiator/ForwardModeAlgorithmicDifferentiator
>throughout. Correct?
Yes, the name was changed because a distant goal will be to also support
reverse mode, which is especially
useful when computing gradients (i.e. when one scalar function depends on many
inputs and we want all partial
derivatives).
Luc
>
>Phil
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
>For additional commands, e-mail: dev-h...@commons.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org