Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::vari_base Class Referenceabstract

Detailed Description

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().

Definition at line 28 of file vari.hpp.

#include <vari.hpp>

+ Inheritance diagram for stan::math::vari_base:

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.
 

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