![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
A var implementation that stores the daughter variable implementation pointers and the partial derivative with respect to the result explicitly in arrays constructed on the autodiff memory stack.
Like a simplified version of OperandsAndPartials.
Definition at line 17 of file stored_gradient_vari.hpp.
#include <stored_gradient_vari.hpp>
Inheritance diagram for stan::math::stored_gradient_vari:Public Member Functions | |
| stored_gradient_vari (double value, size_t size, vari **dtrs, double *partials) | |
| Construct a stored gradient vari with the specified value, size, daughter varis, and partial derivatives. | |
| void | chain () |
| Propagate derivatives through this vari with partial derivatives given for the daughter vari by the stored partials. | |
Protected Attributes | |
| size_t | size_ |
| vari ** | dtrs_ |
| double * | partials_ |