Skip to content

Corner case for providing RHS node as constants with length-1 vector vs scalar issue #1591

@perrydv

Description

@perrydv

A user reported that in model code like:

    for(i in 1:nx) {
        x[i] ~ dexp(r * lambda[i])
    }

where lambda is right-hand-side only, if nx==1 and lambda is provided by constants, we get an error about dimension mismatch. When lambda is provided as data or inits, it works fine.

I don't remember if this has come up before. I'm marking it as a bug, but it could be resolved by documentation or error-trapping if it is too much of a pain to handle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions