Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Reverse mode differentiation algorithm reference:
Mike Giles. An extended collection of matrix derivative results for forward and reverse mode AD. Jan. 2008.
Note algorithm as laid out in Giles is row-major, so Eigen::Matrices are explicitly storage order RowMajor, whereas Eigen defaults to ColumnMajor. Also note algorithm starts by calculating the adjoint for A(M_ - 1, M_ - 1), hence pos on line 94 is decremented to start at pos = M_ * (M_ + 1) / 2.
Definition at line 47 of file cholesky_decompose.hpp.