alashworth / test-issue-import

0 stars 0 forks source link

multiple lower and upper bounds for constraints #103

Open alashworth opened 5 years ago

alashworth commented 5 years ago

Issue by bob-carpenter Saturday Jul 23, 2016 at 20:19 GMT Originally opened as https://github.com/stan-dev/stan/issues/1971


Summary:

Allow vectors and arrays for lower and upper bound constraints.

Description:

Support

data {
  ...
  real a[K];
  real<lower=a> b[K];  // a[k] <= b[k]

parameters {
  real<lower=a> x[K];
  real<upper=b> y[K];
  real<upper=a, upper=b> z[K];

Step 1. Allow 1D containers to act as bounds for 1D containers. Step 2. Matrix containers with matrix bounds. Step 3. Deeper arrays with matching types

alashworth commented 5 years ago

Comment by towinazure Monday May 07, 2018 at 01:21 GMT


Any update on this one?

alashworth commented 5 years ago

Comment by bgoodri Monday May 07, 2018 at 01:58 GMT


No. I think there is little chance of it happening before the refactoring to allow tuples to get it.

alashworth commented 5 years ago

Comment by bob-carpenter Tuesday May 08, 2018 at 03:14 GMT


This has been medium to low priority for a long time because there's a fairly easy workaround given in the manual. We would like to do it, though Ben's right it'll be after the new refactor, which I'm reviewing now.