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

Adds var<mat> specializations for lower/upper bounds #2285

Merged
merged 72 commits into from
Feb 8, 2021
Merged
Changes from 1 commit
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
2875bf8
adds tests for lb ub and lub constraints that take in a var<mat> type
SteveBronder Jan 1, 2021
b52cc3f
Merge remote-tracking branch 'origin/develop' into feature/varmat-bou…
SteveBronder Jan 2, 2021
453c159
fix docs
SteveBronder Jan 2, 2021
d58bf12
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Jan 2, 2021
8a9ca3f
Adds constants to infinity checks
SteveBronder Jan 2, 2021
ee76e0c
update headers
SteveBronder Jan 2, 2021
a4bc716
fix headers
SteveBronder Jan 2, 2021
b8f12ca
fix pf for identity_free
SteveBronder Jan 2, 2021
2b141ff
Finished varmat support for `simplex_constrain` (Issue #2101)
bbbales2 Jan 2, 2021
314ba66
Merge commit 'be49360ca7eb65addfa7001c04699fd6f1a85330' into HEAD
yashikno Jan 2, 2021
c0e835f
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Jan 2, 2021
a7e8e37
fix headers
SteveBronder Jan 2, 2021
3728892
Merge remote-tracking branch 'origin/develop' into feature/varmat-bou…
bbbales2 Jan 5, 2021
d17f751
Updating lb and up some more, work in progress (Issue #2101)
bbbales2 Jan 5, 2021
cd90e7f
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Jan 5, 2021
ee9808a
Work in progress constraints (Issue #2101)
bbbales2 Jan 5, 2021
baa1933
Updating lower/upper constrains to not have special behavior for infi…
bbbales2 Jan 6, 2021
d1da586
Merge branch 'feature/varmat-bound-constrains' of github.com:stan-dev…
bbbales2 Jan 6, 2021
b455cbe
Merge commit '0e9f2c0652d05dc5b9fdf22de986751b754eceeb' into HEAD
yashikno Jan 6, 2021
768364a
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Jan 6, 2021
512605f
Updated log1p, check_less test errors, and log1p tests (Issue #2101)
bbbales2 Jan 6, 2021
3c26026
Merge branch 'feature/varmat-bound-constrains' of github.com:stan-dev…
bbbales2 Jan 6, 2021
c4573c3
Added constrain error checks (Issue #2101)
bbbales2 Jan 6, 2021
ed5f0cb
Added check_finite tests to constrains (Issue #2101)
bbbales2 Jan 6, 2021
3ab81b6
Merge commit 'a280e0d5bc5556c5a3fa5f100e1b8931d61f8f5c' into HEAD
yashikno Jan 6, 2021
71ea9f8
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Jan 6, 2021
67d5106
Added a few vector prim tests (Issue #2101)
bbbales2 Jan 6, 2021
27e8374
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Jan 6, 2021
5ea355d
Added back check_less stuff (Issue #2101)
bbbales2 Jan 6, 2021
7909673
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Jan 6, 2021
202caeb
Work in progress to fix bug (Issue #2101)
bbbales2 Jan 7, 2021
647284b
Adding array specialization of `as_array_or_scalar` (Issue #2101)
bbbales2 Jan 7, 2021
d37a4ee
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Jan 7, 2021
41cc349
Merge remote-tracking branch 'origin/develop' into feature/varmat-bou…
bbbales2 Jan 7, 2021
bcaceb7
Merge branch 'feature/varmat-bound-constrains' of github.com:stan-dev…
bbbales2 Jan 7, 2021
4db37fc
Added missing header (Issue #2101)
bbbales2 Jan 7, 2021
4d9d20f
Simplified `elt_multply`, removed extra comments in constrain, remove…
bbbales2 Jan 8, 2021
83bb692
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Jan 8, 2021
cbfce12
Made lub constrain function symmetric (Issue #2101)
bbbales2 Jan 8, 2021
9b5cc30
Merge branch 'feature/varmat-bound-constrains' of github.com:stan-dev…
bbbales2 Jan 8, 2021
41e8045
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Jan 8, 2021
78f74a1
Cleanup (Issue #2101)
bbbales2 Jan 8, 2021
156c1a1
Merge commit '8c7733a6bd13835a2cec19283b511f5ddc3ee174' into HEAD
yashikno Jan 8, 2021
da3c8a3
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Jan 8, 2021
b98581a
Merge remote-tracking branch 'origin/develop' into feature/varmat-bou…
bbbales2 Jan 11, 2021
22429e6
Added holders to constrain functions (Issue #2101)
bbbales2 Jan 11, 2021
312c676
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Jan 11, 2021
32ae9b3
Merge remote-tracking branch 'origin/develop' into feature/varmat-bou…
bbbales2 Feb 1, 2021
aa5d354
Added elt_multiply tests (Issue #2101)
bbbales2 Feb 1, 2021
e6ac4ae
Merge remote-tracking branch 'origin/develop' into feature/varmat-bou…
bbbales2 Feb 1, 2021
68c13c5
Added tests and docs for operator unary negative
bbbales2 Feb 1, 2021
0a1f283
Added test for check less (Issue #2101)
bbbales2 Feb 1, 2021
ce0f9c7
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Feb 1, 2021
d3b3224
add util header to unary negative test for rev core
SteveBronder Feb 1, 2021
d1dd916
remove std::moves from constrains
SteveBronder Feb 1, 2021
62e527d
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Feb 1, 2021
d5cb70c
update move semantics for transforms
SteveBronder Feb 1, 2021
1e10afa
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Feb 1, 2021
90f01eb
fix unit vector constrain
SteveBronder Feb 1, 2021
23daef2
use const ref instead of const for lb constrain
SteveBronder Feb 1, 2021
961e082
Merge remote-tracking branch 'origin/develop' into feature/varmat-bou…
SteveBronder Feb 3, 2021
23a24b7
remove move from lub_constrain diff obj
SteveBronder Feb 3, 2021
1204614
fix lb and lub constrains
SteveBronder Feb 3, 2021
a4f7c73
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Feb 3, 2021
2c862e9
remove holder from lub
SteveBronder Feb 4, 2021
6fcd1e1
update lub for checks
SteveBronder Feb 4, 2021
324686d
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Feb 4, 2021
4c80d2e
fix names in lub constrain
SteveBronder Feb 4, 2021
e67352e
use evals in lub
SteveBronder Feb 4, 2021
e9814cd
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
stan-buildbot Feb 4, 2021
c5ea613
Merge remote-tracking branch 'origin/develop' into feature/varmat-bou…
bbbales2 Feb 4, 2021
ae633f1
Non-expression for now (Issue #2101)
bbbales2 Feb 4, 2021
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 6.0.0-1ubuntu2~16.0…
…4.1 (tags/RELEASE_600/final)
  • Loading branch information
stan-buildbot committed Feb 4, 2021
commit e9814cdda0a429c4e406aafc00d3dd8e70b55e30
3 changes: 2 additions & 1 deletion stan/math/prim/fun/lub_constrain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ inline auto lub_constrain(T&& x, L&& lb, U&& ub) {
check_less("lub_constrain", "lb", value_of(lb_ref), value_of(ub_ref));
check_finite("lub_constrain", "lb", value_of(lb_ref));
check_finite("lub_constrain", "ub", value_of(ub_ref));
return eval(add(elt_multiply(subtract(ub_ref, lb_ref), inv_logit(x_ref)), lb_ref));
return eval(
add(elt_multiply(subtract(ub_ref, lb_ref), inv_logit(x_ref)), lb_ref));
}

/**
Expand Down