Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::stored_gradient_vari Class Reference

Detailed Description

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_
 

The documentation for this class was generated from the following file: