Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
stan::agrad::partials_vari Class Reference

#include <partials_vari.hpp>

Inheritance diagram for stan::agrad::partials_vari:
stan::agrad::vari stan::agrad::chainable

Public Member Functions

 partials_vari (double value, size_t N, vari **operands, double *partials)
 
void chain ()
 Apply the chain rule to this variable based on the variables on which it depends. More...
 
- Public Member Functions inherited from stan::agrad::vari
 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...
 
virtual void init_dependent ()
 Initialize the adjoint for this (dependent) variable to 1. More...
 
virtual void set_zero_adjoint ()
 Set the adjoint value of this variable to 0. More...
 
- Public Member Functions inherited from stan::agrad::chainable
 chainable ()
 Construct a chainable object. More...
 
virtual ~chainable ()
 Chainables are not destructible and should go on the function call stack or be allocated with operator new. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from stan::agrad::chainable
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...
 
- Public Attributes inherited from stan::agrad::vari
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...
 

Detailed Description

Definition at line 11 of file partials_vari.hpp.

Constructor & Destructor Documentation

stan::agrad::partials_vari::partials_vari ( double  value,
size_t  N,
vari **  operands,
double *  partials 
)
inline

Definition at line 17 of file partials_vari.hpp.

Member Function Documentation

void stan::agrad::partials_vari::chain ( )
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::agrad::chainable.

Definition at line 24 of file partials_vari.hpp.


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

     [ Stan Home Page ] © 2011–2014, Stan Development Team.