Stan Math Library  2.15.0
reverse mode automatic differentiation
Public Member Functions | List of all members
stan::math::scal_squared_distance_vd_vari Class Reference

#include <squared_distance.hpp>

Inheritance diagram for stan::math::scal_squared_distance_vd_vari:
stan::math::op_vd_vari stan::math::vari

Public Member Functions

 scal_squared_distance_vd_vari (vari *avi, double b)
 
void chain ()
 Apply the chain rule to this variable based on the variables on which it depends. More...
 
- Public Member Functions inherited from stan::math::op_vd_vari
 op_vd_vari (double f, vari *avi, double b)
 
- Public Member Functions inherited from stan::math::vari
 vari (double x)
 Construct a variable implementation from a value. More...
 
 vari (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...
 

Additional Inherited Members

- Static Public Member Functions inherited from stan::math::vari
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::math::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...
 
- Protected Attributes inherited from stan::math::op_vd_vari
variavi_
 
double bd_
 

Detailed Description

Definition at line 22 of file squared_distance.hpp.

Constructor & Destructor Documentation

§ scal_squared_distance_vd_vari()

stan::math::scal_squared_distance_vd_vari::scal_squared_distance_vd_vari ( vari avi,
double  b 
)
inline

Definition at line 24 of file squared_distance.hpp.

Member Function Documentation

§ chain()

void stan::math::scal_squared_distance_vd_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::math::vari.

Definition at line 28 of file squared_distance.hpp.


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

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