Stan Math Library
4.9.0
Automatic Differentiation
|
|
inlinestaticnoexcept |
Build the node to be stored on the autodiff graph.
This should contain both the value and the tangent.
For scalars (this implementation), we don't calculate any derivatives. For reverse mode, we end up returning a type of var that will calculate the appropriate adjoint using the stored operands and partials. Forward mode just calculates the tangent on the spot and returns it in a vanilla fvar.
value | the return value of the function we are compressing |
Definition at line 70 of file partials_propagator.hpp.