Skip to content

Commit

Permalink
Updated tolerances on power method (Issue #2814)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbales2 committed Oct 31, 2020
1 parent 8cf629f commit b870702
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/stan/mcmc/auto_adaptation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ double eigenvalue_scaled_covariance(const Eigen::MatrixXd& L,

auto Sx = [&](Eigen::VectorXd x) -> Eigen::VectorXd { return S * x; };

int max_iterations = 100;
double tol = 1e-3;
int max_iterations = 200;
double tol = 1e-5;

return internal::power_method(Sx, Eigen::VectorXd::Random(Sigma.cols()),
max_iterations, tol);
Expand Down Expand Up @@ -147,8 +147,8 @@ double eigenvalue_scaled_hessian(const Model& model, const Eigen::MatrixXd& L,
return L.transpose() * (grad1 - grad2) / dx;
};

int max_iterations = 100;
double tol = 1e-3;
int max_iterations = 200;
double tol = 1e-5;

return internal::power_method(
hessian_vector, Eigen::VectorXd::Random(q.size()), max_iterations, tol);
Expand Down

0 comments on commit b870702

Please sign in to comment.