Stan Math Library  2.20.0
reverse mode automatic differentiation
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
stan::math::internal::dot_self_vari Class Reference

#include <dot_self.hpp>

Inheritance diagram for stan::math::internal::dot_self_vari:
stan::math::vari

Public Member Functions

 dot_self_vari (vari **v, size_t size)
 
template<typename Derived >
 dot_self_vari (const Eigen::DenseBase< Derived > &v)
 
template<int R, int C>
 dot_self_vari (const Eigen::Matrix< var, R, C > &v)
 
template<typename Derived >
double var_dot_self (const Eigen::DenseBase< Derived > &v)
 
virtual 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::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...
 

Static Public Member Functions

static double square (double x)
 
static double var_dot_self (vari **v, size_t size)
 
template<int R, int C>
static double var_dot_self (const Eigen::Matrix< var, R, C > &v)
 
- 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...
 

Protected Attributes

vari ** v_
 
size_t size_
 

Additional Inherited Members

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

Detailed Description

Definition at line 14 of file dot_self.hpp.

Constructor & Destructor Documentation

◆ dot_self_vari() [1/3]

stan::math::internal::dot_self_vari::dot_self_vari ( vari **  v,
size_t  size 
)
inline

Definition at line 20 of file dot_self.hpp.

◆ dot_self_vari() [2/3]

template<typename Derived >
stan::math::internal::dot_self_vari::dot_self_vari ( const Eigen::DenseBase< Derived > &  v)
inlineexplicit

Definition at line 23 of file dot_self.hpp.

◆ dot_self_vari() [3/3]

template<int R, int C>
stan::math::internal::dot_self_vari::dot_self_vari ( const Eigen::Matrix< var, R, C > &  v)
inlineexplicit

Definition at line 31 of file dot_self.hpp.

Member Function Documentation

◆ chain()

virtual void stan::math::internal::dot_self_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 59 of file dot_self.hpp.

◆ square()

static double stan::math::internal::dot_self_vari::square ( double  x)
inlinestatic

Definition at line 38 of file dot_self.hpp.

◆ var_dot_self() [1/3]

static double stan::math::internal::dot_self_vari::var_dot_self ( vari **  v,
size_t  size 
)
inlinestatic

Definition at line 39 of file dot_self.hpp.

◆ var_dot_self() [2/3]

template<typename Derived >
double stan::math::internal::dot_self_vari::var_dot_self ( const Eigen::DenseBase< Derived > &  v)
inline

Definition at line 46 of file dot_self.hpp.

◆ var_dot_self() [3/3]

template<int R, int C>
static double stan::math::internal::dot_self_vari::var_dot_self ( const Eigen::Matrix< var, R, C > &  v)
inlinestatic

Definition at line 53 of file dot_self.hpp.

Member Data Documentation

◆ size_

size_t stan::math::internal::dot_self_vari::size_
protected

Definition at line 17 of file dot_self.hpp.

◆ v_

vari** stan::math::internal::dot_self_vari::v_
protected

Definition at line 16 of file dot_self.hpp.


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

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