We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1c5e6c commit 597fd7eCopy full SHA for 597fd7e
stan/math/fwd/prob/std_normal_log_qf.hpp
@@ -16,9 +16,7 @@ namespace math {
16
template <typename T>
17
inline fvar<T> std_normal_log_qf(const fvar<T>& p) {
18
const T xv = std_normal_log_qf(p.val_);
19
- return fvar<T>(
20
- xv,
21
- p.d_ * exp(p.val_ - std_normal_lpdf(xv)));
+ return fvar<T>(xv, p.d_ * exp(p.val_ - std_normal_lpdf(xv)));
22
}
23
} // namespace math
24
} // namespace stan
test/unit/math/mix/prob/std_normal_log_qf_test.cpp
@@ -4,7 +4,6 @@
4
#include <test/unit/math/test_ad.hpp>
5
#include <stan/math/fwd/prob/std_normal_log_qf.hpp>
6
7
-
8
TEST_F(AgradRev, mathMixLogFun_stdNormalLogQf) {
9
auto f = [](const auto& x1) { return stan::math::std_normal_log_qf(x1); };
10
stan::test::expect_ad(f, -100.25);
0 commit comments