Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Calculates LDL decomposition of a shifted triagonal matrix T.
D is diagonal, L is lower unit triangular (diagonal elements are 1, all elements except diagonal and subdiagonal are 0),T - shift * I = L * D * L^T. Also calculates element growth of D: max(abs(D)).
diagonal | Diagonal of T | |
subdiagonal | Subdiagonal of T. | |
shift | Shift. | |
[out] | l | Subdiagonal of L. |
[out] | d_plus | Diagonal of D. |