Skip to content

Wrong names propagated after matrix multiplication #86

@baggepinnen

Description

@baggepinnen

Here I have two matrices with names (y1, u1) and (y2, u2). When multiplying them, it appears as if the names in the result are chosen based on the second argument only, but I expected to get (y1, u2) when multiplying (y1, u1) * (y2, u2). Maybe my understanding is incorrect?

julia> s1.D
1×1 ComponentMatrix{Int64} with axes Axis(y1 = 1,) × Axis(u1 = 1,)
 1

julia> s2.D
1×1 ComponentMatrix{Int64} with axes Axis(y2 = 1,) × Axis(u2 = 1,)
 1

julia> s1.D*s2.D
1×1 ComponentMatrix{Int64} with axes Axis(y2 = 1,) × Axis(u2 = 1,)
 1

julia> s2.D*s1.D
1×1 ComponentMatrix{Int64} with axes Axis(y1 = 1,) × Axis(u1 = 1,)
 1

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