[FR] Add `lower_upper` constrain
Nobody has claimed this yet.
- Dominant language
- OCaml
- Stars
- 160
- Forks
- 59
- Avg merge
- 21h 45m
- Merged PRs (30d)
- 26
Description
With the merge of stan-dev/math#3087, the lub_* constrain and free functions now support a single tuple of bounds. It would be great to add the lower_upper bounds type so that both bounds can be specified in a single function call.
Example pseudo-stan:
functions {
(vector, vector) make_bounds(...) { ... }
}
...
parameters {
vector<lower_upper = make_bounds(...)> x;
}
This would be great for situations where parameter bounds depend on functions of other parameters, and there is some non-trivial computation shared by both bounds
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no source files or tests. Start by reviewing the existing lub_* constrain and free-function support from stan-dev/math#3087, then determine how a single lower_upper bounds specification should be represented; done means bounds returned together by make_bounds can be used in one parameter declaration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100