Skip to content

stan parser: disallow transpose operator on primitive type variables #2594

@mitzimorris

Description

@mitzimorris

Summary:

parser allows transpose of primitives in program - it would be better to flag this and fail.

Description:

noticed during code review as part of #2498

transpose is allowed to apply to a primitive, doing nothing. I'd rather it fail at this point and print a warning message, but that would be a change in current language behavior and we can do that in a different PR.

Reproducible Steps:

Please report steps to reproduce the issue. If it's not possible to reproduce, please include a description of how you discovered the issue.

If you have a reproducible example, please include it.

Current Output:

The current output. Knowing what is the current behavior is useful.

Expected Output:

Describe what you expect the output to be. Knowing the correct behavior is also very useful.

Additional Information:

Provide any additional information here.

Current Version:

v2.18.0

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