Skip to content

Commit

Permalink
fix CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
spinkney committed Dec 4, 2023
1 parent 53ba6d8 commit 5530904
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stan/math/prim/prob/multi_normal_lpdf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <stan/math/prim/fun/as_column_vector_or_scalar.hpp>
#include <stan/math/prim/fun/constants.hpp>
#include <stan/math/prim/fun/dot_product.hpp>
#include <stan/math/prim/fun/identity_matrix.hpp>
#include <stan/math/prim/fun/log.hpp>
#include <stan/math/prim/fun/log_determinant_ldlt.hpp>
#include <stan/math/prim/fun/max_size_mvt.hpp>
Expand Down Expand Up @@ -130,7 +129,7 @@ return_type_t<T_y, T_loc, T_covar> multi_normal_lpdf(const T_y& y,
}
} else {
matrix_partials_t inv_Sigma
= ldlt_Sigma.ldlt().solve(Eigen::MatrixXd::Identity(K, K));
= mdivide_left_ldlt(ldlt_Sigma, Eigen::MatrixXd::Identity(K, K));

half = (inv_Sigma.template selfadjointView<Eigen::Lower>()
* y_val_minus_mu_val);
Expand Down Expand Up @@ -234,7 +233,7 @@ return_type_t<T_y, T_loc, T_covar> multi_normal_lpdf(const T_y& y,
}
} else {
matrix_partials_t inv_Sigma
= ldlt_Sigma.ldlt().solve(Eigen::MatrixXd::Identity(K, K));
= mdivide_left_ldlt(ldlt_Sigma, Eigen::MatrixXd::Identity(K, K));
half = (inv_Sigma.template selfadjointView<Eigen::Lower>()
* y_val_minus_mu_val);

Expand Down

0 comments on commit 5530904

Please sign in to comment.