![]() |
Stan Math Library
2.10.0
reverse mode automatic differentiation
|
#include <precomp_v_vari.hpp>
Public Member Functions | |
precomp_v_vari (double val, vari *avi, double da) | |
void | chain () |
Apply the chain rule to this variable based on the variables on which it depends. More... | |
![]() | |
op_v_vari (double f, vari *avi) | |
![]() | |
vari (const double x) | |
Construct a variable implementation from a value. More... | |
vari (const double x, bool stacked) | |
virtual | ~vari () |
Throw an illegal argument exception. More... | |
void | init_dependent () |
Initialize the adjoint for this (dependent) variable to 1. More... | |
void | set_zero_adjoint () |
Set the adjoint value of this variable to 0. More... | |
Protected Attributes | |
double | da_ |
![]() | |
vari * | avi_ |
Additional Inherited Members | |
![]() | |
static void * | operator new (size_t nbytes) |
Allocate memory from the underlying memory pool. More... | |
static void | operator delete (void *) |
Delete a pointer from the underlying memory pool. More... | |
![]() | |
const double | val_ |
The value of this variable. More... | |
double | adj_ |
The adjoint of this variable, which is the partial derivative of this variable with respect to the root variable. More... | |
Definition at line 11 of file precomp_v_vari.hpp.
|
inline |
Definition at line 15 of file precomp_v_vari.hpp.
|
inlinevirtual |
Apply the chain rule to this variable based on the variables on which it depends.
The base implementation in this class is a no-op.
Reimplemented from stan::math::vari.
Definition at line 19 of file precomp_v_vari.hpp.
|
protected |
Definition at line 13 of file precomp_v_vari.hpp.