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

Fix weibull lcdf #2811

Closed
wants to merge 42 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
788e59b
Update weibull_lcdf.hpp
spinkney Sep 8, 2022
9c1f7ac
update for more stable computation
spinkney Sep 8, 2022
dd441a2
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot Sep 8, 2022
a4ce067
Update weibull_lcdf.hpp
spinkney Sep 8, 2022
0ffb1ce
Merge branch 'fix-weibull-lcdf' of https://github.com/stan-dev/math i…
spinkney Sep 8, 2022
ef883bf
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot Sep 8, 2022
5fecb05
Update weibull_lcdf.hpp
spinkney Sep 8, 2022
ed2d052
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot Sep 8, 2022
81f3095
Revert "Update weibull_lcdf.hpp"
spinkney Sep 8, 2022
6c8aba5
Merge branch 'fix-weibull-lcdf' of https://github.com/stan-dev/math i…
spinkney Sep 8, 2022
cd87708
fix
spinkney Sep 9, 2022
48f52f1
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot Sep 9, 2022
fc1462f
expression tests
spinkney Sep 9, 2022
8e15fd9
fix expression tests
spinkney Sep 10, 2022
9830f11
Update weibull_lcdf.hpp
spinkney Sep 10, 2022
07ee73a
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot Sep 10, 2022
8bc5b9c
lint
spinkney Sep 10, 2022
92c7174
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot Sep 10, 2022
a82ffd7
fix opencl
spinkney Sep 11, 2022
20809f8
Update weibull_cdf.hpp
spinkney Sep 11, 2022
a71fe03
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot Sep 11, 2022
b740100
Update weibull_cdf.hpp
spinkney Sep 11, 2022
c5f107a
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot Sep 11, 2022
2a58c27
opencl fix
spinkney Sep 12, 2022
680671b
add tests
spinkney Sep 12, 2022
1eb9755
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot Sep 12, 2022
7321030
update derivative for opencl
spinkney Sep 12, 2022
6c8647a
update opencl
spinkney Sep 12, 2022
7a10917
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot Sep 12, 2022
a78411e
Update weibull_cdf.hpp
spinkney Sep 12, 2022
f9ba715
try this for opencl
spinkney Sep 15, 2022
607ce15
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot Sep 15, 2022
d1fec42
test again
spinkney Sep 16, 2022
9fab6f6
update opencl
spinkney Oct 22, 2022
ae04c4f
Merge commit '4d2b936d6686586376bbc8a99ecdf7c0937c251f' into HEAD
yashikno Oct 22, 2022
42a66c0
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot Oct 22, 2022
2d8a7a6
Update weibull_cdf.hpp
spinkney Oct 22, 2022
33f0c3c
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
stan-buildbot Oct 22, 2022
678431c
Update weibull_cdf.hpp
spinkney Oct 23, 2022
33a92f7
Merge branch 'fix-weibull-lcdf' of https://github.com/stan-dev/math i…
spinkney Oct 23, 2022
5cd853d
Merge branch 'develop' into fix-weibull-lcdf
andrjohns Mar 21, 2024
f576d89
Stray include
andrjohns Mar 21, 2024
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
Next Next commit
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
  • Loading branch information
stan-buildbot committed Sep 15, 2022
commit 607ce156eec7883290a93a76da2df90d540ef606
10 changes: 5 additions & 5 deletions stan/math/opencl/prim/weibull_cdf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,21 @@ return_type_t<T_y_cl, T_shape_cl, T_scale_cl> weibull_cdf(
if (y_val == 0) {
ops_partials.edge1_.partials_ = 0;
} else {
ops_partials.edge1_.partials_ = std::move(y_deriv_cl);
ops_partials.edge1_.partials_ = std::move(y_deriv_cl);
}
}
if (!is_constant<T_shape_cl>::value) {
if (y_val == 0) {
if (y_val == 0) {
ops_partials.edge2_.partials_ = 0;
} else {
ops_partials.edge2_.partials_ = std::move(alpha_deriv_cl);
ops_partials.edge2_.partials_ = std::move(alpha_deriv_cl);
}
}
if (!is_constant<T_scale_cl>::value) {
if (y_val == 0) {
if (y_val == 0) {
ops_partials.edge3_.partials_ = 0;
} else {
ops_partials.edge3_.partials_ = std::move(sigma_deriv_cl);
ops_partials.edge3_.partials_ = std::move(sigma_deriv_cl);
}
}
return ops_partials.build(cdf);
Expand Down