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

#include <vector_vari.hpp>

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

Public Member Functions

 op_vector_vari (double f, const std::vector< stan::agrad::var > &vs)
 
vari * operator[] (size_t n) const
 
size_t size ()
 
- Public Member Functions inherited from stan::agrad::vari
 vari (const double x)
 Construct a variable implementation from a value.
 
virtual void chain ()
 Apply the chain rule to this variable based on the variables on which it depends.
 
 vari (const double x)
 Construct a variable implementation from a value.
 
 vari (const double x, bool stacked)
 
 ~vari ()
 Throw an illegal argument exception.
 
virtual void init_dependent ()
 Initialize the adjoint for this (dependent) variable to 1.
 
virtual void set_zero_adjoint ()
 Set the adjoint value of this variable to 0.
 
- Public Member Functions inherited from stan::agrad::chainable
 chainable ()
 Construct a chainable object.
 
 ~chainable ()
 Chainables are not destructible and should go on the function call stack or be allocated with operator new.
 

Protected Attributes

const size_t size_
 
vari ** vis_
 

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.
 
static void recover_memory ()
 Recover memory used for all variables for reuse.
 
static void free_memory ()
 Return all memory used for gradients back to the system.
 
- Public Attributes inherited from stan::agrad::vari
const double val_
 The value of this variable.
 
double adj_
 The adjoint of this variable, which is the partial derivative of this variable with respect to the root variable.
 

Detailed Description

Definition at line 12 of file vector_vari.hpp.

Constructor & Destructor Documentation

stan::agrad::op_vector_vari::op_vector_vari ( double  f,
const std::vector< stan::agrad::var > &  vs 
)
inline

Definition at line 17 of file vector_vari.hpp.

Member Function Documentation

vari* stan::agrad::op_vector_vari::operator[] ( size_t  n) const
inline

Definition at line 24 of file vector_vari.hpp.

size_t stan::agrad::op_vector_vari::size ( )
inline

Definition at line 27 of file vector_vari.hpp.

Member Data Documentation

const size_t stan::agrad::op_vector_vari::size_
protected

Definition at line 14 of file vector_vari.hpp.

vari** stan::agrad::op_vector_vari::vis_
protected

Definition at line 15 of file vector_vari.hpp.


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

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