Stan Math Library
5.0.0
Automatic Differentiation
|
Abstract base class that all vari_value
and it's derived classes inherit.
The chain() method applies the chain rule. Concrete extensions of this class will represent base variables or the result of operations such as addition or subtraction. These extended classes will store operand variables and propagate derivative information via an implementation of chain().
#include <vari.hpp>
Public Member Functions | |
virtual void | chain ()=0 |
Apply the chain rule to this variable based on the variables on which it depends. | |
virtual void | set_zero_adjoint ()=0 |
Static Public Member Functions | |
static void * | operator new (size_t nbytes) noexcept |
Allocate memory from the underlying memory pool. | |
static void | operator delete (void *) noexcept |
Delete a pointer from the underlying memory pool. | |