Skip to content

Support std::tuple types in promote_scalar #2701

@WardBrian

Description

@WardBrian

Description

It would be nice if assignment in tuple-containing Stan programs, was able to promote, so that you could assign a (int, int) value to a (real, int) variable, for example. In the most general case of course, the elements of these tuples could be tuples, arrays, arrays of tuples, etc.

Ideally, promote_scalar<std::tuple<TYPES>>(X) should work when X was a tuple or when X was a std::vector of tuples.

Current Version:

v4.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions