#include <vector_vari.hpp>
|
| | op_vector_vari (double f, const std::vector< stan::agrad::var > &vs) |
| |
| vari * | operator[] (size_t n) const |
| |
| size_t | size () |
| |
| | 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.
|
| |
| | chainable () |
| | Construct a chainable object.
|
| |
| | ~chainable () |
| | Chainables are not destructible and should go on the function call stack or be allocated with operator new.
|
| |
|
| 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.
|
| |
| 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.
|
| |
Definition at line 12 of file vector_vari.hpp.
| stan::agrad::op_vector_vari::op_vector_vari |
( |
double |
f, |
|
|
const std::vector< stan::agrad::var > & |
vs |
|
) |
| |
|
inline |
| vari* stan::agrad::op_vector_vari::operator[] |
( |
size_t |
n | ) |
const |
|
inline |
| size_t stan::agrad::op_vector_vari::size |
( |
| ) |
|
|
inline |
| const size_t stan::agrad::op_vector_vari::size_ |
|
protected |
| vari** stan::agrad::op_vector_vari::vis_ |
|
protected |
The documentation for this class was generated from the following file: