stan-dev / stan-dev/stan

Lift the "(Transformed) parameters cannot be integers" restriction

Open
#3,363 5 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.