Skip to content

MMatrix generation with @MMatrix requires equal type for elements #911

@judober

Description

@judober

I ran into this:

@MMatrix [1 1; 1 1.0]

errors with Size mismatch in Static Array parameters. Got size Tuple{2, 2}, dimension 2 and length 1.
The same works for SMatrix:

@SMatrix [1 1; 1 1.0]

turning all elements into float64. The workaround is this:

@MMatrix [1.0 1.0; 1.0 1.0]

I would expect MMatrix to behave like SMatrix.
Also, for MVector it works:

@MVector [1, 1.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions