Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ find_initial_shift()

double stan::math::internal::find_initial_shift ( const Eigen::Ref< const Eigen::VectorXd >  diagonal,
const Eigen::Ref< const Eigen::VectorXd >  subdiagonal,
VectorXdd l0,
VectorXdd d0,
const double  min_eigval,
const double  max_eigval,
const double  max_ele_growth 
)
inline

Finds a good value for shift of the initial LDL factorization T - shift * I = L * D * L^T.

Parameters
diagonalDiagonal of T.
subdiagonalSubdiagonal of T.
l0Subdiagonal of L.
d0Diagonal of D.
min_eigvalLower bound on eigenvalues of T.
max_eigvalHigh bound on eigenvalues of T
max_ele_growthMaximum desired element growth.
Returns

Definition at line 109 of file mrrr.hpp.