Stan  1.0
probability, sampling & optimization
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
stan::agrad::gevv_vvv_vari Class Reference

#include <matrix.hpp>

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

Public Member Functions

 gevv_vvv_vari (const stan::agrad::var *alpha, const stan::agrad::var *v1, int stride1, const stan::agrad::var *v2, int stride2, size_t length)
 
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 ()
 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...
 
 vari (const double x)
 Construct a variable implementation from a value. More...
 
- Public Member Functions inherited from stan::agrad::chainable
 chainable ()
 Construct a chainable object. More...
 
 ~chainable ()
 Throws a logic exception. More...
 

Static Protected Member Functions

static double eval_gevv (const stan::agrad::var *alpha, const stan::agrad::var *v1, int stride1, const stan::agrad::var *v2, int stride2, size_t length, double *dotprod)
 

Protected Attributes

stan::agrad::varialpha_
 
stan::agrad::vari ** v1_
 
stan::agrad::vari ** v2_
 
double dotval_
 
size_t length_
 

Additional Inherited Members

- Static Public Member Functions inherited from stan::agrad::vari
static void * operator new (size_t nbytes)
 Allocate memory from the underlying memory pool. More...
 
static void recover_memory ()
 Recover memory used for all variables for reuse. More...
 
static void free_memory ()
 Return all memory used for gradients back to the system. More...
 
- Static Public Member Functions inherited from stan::agrad::chainable
static void * operator new (size_t nbytes)
 Allocate memory 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 matrix.hpp.

Constructor & Destructor Documentation

◆ gevv_vvv_vari()

stan::agrad::gevv_vvv_vari::gevv_vvv_vari ( const stan::agrad::var alpha,
const stan::agrad::var v1,
int  stride1,
const stan::agrad::var v2,
int  stride2,
size_t  length 
)
inline

Definition at line 29 of file matrix.hpp.

Member Function Documentation

◆ chain()

void stan::agrad::gevv_vvv_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::vari.

Definition at line 41 of file matrix.hpp.

◆ eval_gevv()

static double stan::agrad::gevv_vvv_vari::eval_gevv ( const stan::agrad::var alpha,
const stan::agrad::var v1,
int  stride1,
const stan::agrad::var v2,
int  stride2,
size_t  length,
double *  dotprod 
)
inlinestaticprotected

Definition at line 18 of file matrix.hpp.

Member Data Documentation

◆ alpha_

stan::agrad::vari* stan::agrad::gevv_vvv_vari::alpha_
protected

Definition at line 13 of file matrix.hpp.

◆ dotval_

double stan::agrad::gevv_vvv_vari::dotval_
protected

Definition at line 16 of file matrix.hpp.

◆ length_

size_t stan::agrad::gevv_vvv_vari::length_
protected

Definition at line 17 of file matrix.hpp.

◆ v1_

stan::agrad::vari** stan::agrad::gevv_vvv_vari::v1_
protected

Definition at line 14 of file matrix.hpp.

◆ v2_

stan::agrad::vari** stan::agrad::gevv_vvv_vari::v2_
protected

Definition at line 15 of file matrix.hpp.


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

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