Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates LLT to inplace decomposition per eigen 3.3 doc #549

Merged
merged 2 commits into from
May 7, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Modified the function note, and added explicit Lower instantiation for
LLT
  • Loading branch information
rtrangucci committed May 5, 2017
commit 9b449b7cd3be08f3acc1ef2610ee5a6a324c2062
6 changes: 3 additions & 3 deletions stan/math/rev/mat/fun/cholesky_decompose.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ namespace stan {
/**
* Reverse mode specialization of cholesky decomposition
*
* Internally calls llt rather than using cholesky_decompose in order to
* use selfadjointView<Lower> optimization.
* Internally calls Eigen::LLT rather than using
* stan::math::cholesky_decompose in order to use an inplace decomposition.
*
* Note chainable stack varis are created below in Matrix<var, -1, -1>
*
Expand All @@ -244,7 +244,7 @@ namespace stan {
check_symmetric("cholesky_decompose", "A", A);

Eigen::Matrix<double, -1, -1> L_A(value_of_rec(A));
Eigen::LLT<Eigen::Ref<Eigen::MatrixXd> > L_factor(L_A);
Eigen::LLT<Eigen::Ref<Eigen::MatrixXd>, Eigen::Lower> L_factor(L_A);
check_pos_definite("cholesky_decompose", "m", L_factor);

// Memory allocated in arena.
Expand Down