Open alashworth opened 5 years ago
Issue by bob-carpenter Sunday Oct 15, 2017 at 22:18 GMT Originally opened as https://github.com/stan-dev/stan/issues/2419
I think this should work:
int[3] x = { 1, 2, 3}; real[3] y = x; // FAILS as of Stan 2.17
This is related to #830; it'd be nice to provide full covariance and contravariance through containers for the int to real promotion.
int
real
v2.17.0
Issue by bob-carpenter Sunday Oct 15, 2017 at 22:18 GMT Originally opened as https://github.com/stan-dev/stan/issues/2419
Summary:
I think this should work:
This is related to #830; it'd be nice to provide full covariance and contravariance through containers for the
int
toreal
promotion.Current Version:
v2.17.0