Lift the "(Transformed) parameters cannot be integers" restriction
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.8k
- Forks
- 388
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 15
Description
When working with ragged arrays, it's sometimes useful to me to have transformed parameters of the type
tuple(
array[n_groups] int,
vector[n_total]
)
However, this is not allowed, due to the restriction in the title.
It would be nice if ths restriction could be lifted, though there are of course ways to work around it.
Contributor guide
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 concerns validation of integer members in transformed-parameter tuple types for ragged arrays. Start by locating the compiler entry point and tests that enforce this restriction; done means the shown Stan declaration is accepted without breaking existing transformed-parameter checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100