![]() |
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_dv_vari (const LDLT_factor< double, 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 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 double/var case.
Definition at line 116 of file mdivide_left_ldlt.hpp.
|
inline |
Definition at line 124 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 161 of file mdivide_left_ldlt.hpp.
mdivide_left_ldlt_alloc<R1, C1, R2, C2>* stan::math::internal::mdivide_left_ldlt_dv_vari< R1, C1, R2, C2 >::alloc_ |
Definition at line 122 of file mdivide_left_ldlt.hpp.
int stan::math::internal::mdivide_left_ldlt_dv_vari< R1, C1, R2, C2 >::M_ |
Definition at line 118 of file mdivide_left_ldlt.hpp.
int stan::math::internal::mdivide_left_ldlt_dv_vari< R1, C1, R2, C2 >::N_ |
Definition at line 119 of file mdivide_left_ldlt.hpp.
vari** stan::math::internal::mdivide_left_ldlt_dv_vari< R1, C1, R2, C2 >::variRefB_ |
Definition at line 120 of file mdivide_left_ldlt.hpp.
vari** stan::math::internal::mdivide_left_ldlt_dv_vari< R1, C1, R2, C2 >::variRefC_ |
Definition at line 121 of file mdivide_left_ldlt.hpp.