Skip to content

1.7-beta2: type instability for matrix multiplication #41489

@j-fu

Description

@j-fu

Hi, I encountered a type instability in matrix multiplication

julia> A=Rational[1 1 1; 2 2 2; 3 3 3]
3×3 Matrix{Rational}:
 1//1  1//1  1//1
 2//1  2//1  2//1
 3//1  3//1  3//1

On 1.7-beta2:

julia> A*A
3×3 Matrix{Any}:
  6//1   6//1   6//1
 12//1  12//1  12//1
 18//1  18//1  18//1

On 1.6.1:

julia> A*A
3×3 Matrix{Rational}:
  6//1   6//1   6//1
 12//1  12//1  12//1
 18//1  18//1  18//1

Metadata

Metadata

Assignees

No one assigned

    Labels

    regressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions