Comments (6)
This should be fixed now. Definitely was a bug.
from stanc3.
from stanc3.
Those error messages are coming from Stan on develop
, I can try pulling again and see if they go away.
from stanc3.
Oh, I made a mistake when I first wrote the post and edited it in github and I see that you replied to the old post. Try
model { 1 ~ bernoulli(0.2) T[0.1, 1.1]; }
from stanc3.
from stanc3.
Right. The following does compile, on stanc2:
model { 1 ~ bernoulli(0.2) T[0, 1]; }
So the problem was merely the signature of the bounds.
I think stanc3 currently does check the existence of a cdf, but I don't think it checks the type of the cdf. I hadn't realised that the bounds can sometimes be integer and that that needs to be checked. Therefore, it was not throwing an error.
By the way, the following also compiles on stanc2, which shouldn't, so that's a bug:
model { 1 ~ bernoulli(0.2) T[0, 1.1]; }
from stanc3.
Related Issues (20)
- [BUG] Array literals in `return` statements may generate wrong type in C++
- [BUG] Tilde syntax does not properly generate promote_scalar for array arguments HOT 7
- [FR] Variadic signatures with external c++ HOT 1
- [FR] Tuple unpacking
- [FR] Expose variadic signatures for `integrate_1d` (deprecate current?) HOT 8
- Expose additional `normal_id_glm` pointwise signatures HOT 2
- Issue a warning when a variable is assigned to itself HOT 5
- [Build] Investigate Melange as an alternative to Js_of_ocaml
- [BUG] atan2 listed as vectorised in manual, vectorised sigs not in stanc3
- Stan compiler Error when using the normal_cdf function HOT 16
- [BUG] Reporting example where new compiler failed HOT 1
- [BUG] stanc3 v. 2.33.1: build error with OCaml 4.14.1 and JaneStreet 0.16.x: `Error: This expression has type [ `Use_Sys_unix ] This is not a function; it cannot be applied`; `Error: Unbound value Set.Poly.union` HOT 4
- Typechecker: Allow predicate-based typechecking of library functions HOT 3
- [BUG] SoA request is ignored with external c++ HOT 5
- Release support for building against ocaml 5 HOT 9
- [BUG] Github action doesn't build static binary for linux platform
- Improve message and handling of internal compiler errors
- [BUG] Array declaration no longer canonicalizes from deprecated format HOT 1
- Iinformative error message for expired array syntax
- CI: Switch from the ghr script to the github CLI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stanc3.