![]() |
Stan Math Library
2.20.0
reverse mode automatic differentiation
|
The vari for mdivide_left_ldlt(A, b) which handles the chain() call for all elements of the result. More...
#include <mdivide_left_ldlt.hpp>
Public Member Functions | |
mdivide_left_ldlt_vv_vari (const LDLT_factor< var, R1, C1 > &A, const Eigen::Matrix< var, R2, C2 > &B) | |
virtual void | chain () |
Apply the chain rule to this variable based on the variables on which it depends. More... | |
![]() | |
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... | |
Public Attributes | |
int | M_ |
int | N_ |
vari ** | variRefB_ |
vari ** | variRefC_ |
mdivide_left_ldlt_alloc< R1, C1, R2, C2 > * | alloc_ |
const LDLT_alloc< R1, C1 > * | alloc_ldlt_ |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
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... | |
The vari for mdivide_left_ldlt(A, b) which handles the chain() call for all elements of the result.
This vari follows the pattern used in the other matrix operations where there is one "master" vari whose value is never used and a large number of "slave" varis whose chain() functions are never called because their adjoints are set by the "mater" vari.
This class handles the var/var case.
Definition at line 39 of file mdivide_left_ldlt.hpp.
|
inline |
Definition at line 48 of file mdivide_left_ldlt.hpp.
|
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 82 of file mdivide_left_ldlt.hpp.
mdivide_left_ldlt_alloc<R1, C1, R2, C2>* stan::math::internal::mdivide_left_ldlt_vv_vari< R1, C1, R2, C2 >::alloc_ |
Definition at line 45 of file mdivide_left_ldlt.hpp.
const LDLT_alloc<R1, C1>* stan::math::internal::mdivide_left_ldlt_vv_vari< R1, C1, R2, C2 >::alloc_ldlt_ |
Definition at line 46 of file mdivide_left_ldlt.hpp.
int stan::math::internal::mdivide_left_ldlt_vv_vari< R1, C1, R2, C2 >::M_ |
Definition at line 41 of file mdivide_left_ldlt.hpp.
int stan::math::internal::mdivide_left_ldlt_vv_vari< R1, C1, R2, C2 >::N_ |
Definition at line 42 of file mdivide_left_ldlt.hpp.
vari** stan::math::internal::mdivide_left_ldlt_vv_vari< R1, C1, R2, C2 >::variRefB_ |
Definition at line 43 of file mdivide_left_ldlt.hpp.
vari** stan::math::internal::mdivide_left_ldlt_vv_vari< R1, C1, R2, C2 >::variRefC_ |
Definition at line 44 of file mdivide_left_ldlt.hpp.