JuliaLang / JuliaLang/LinearAlgebra.jl

eltype deduction regression in Julia 1.3 and above for generic matmul

Open
#705 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
77
Forks
65
Avg merge
3d 23h
Merged PRs (30d)
10

Description

Julia 1.0.5:
```julia
julia> Real[1 2] * Real[1.5; 2.0]
1-element Array{Real,1}:
5.5
```

Julia 1.3.1:
```julia
julia> Real[1 2] * Real[1.5; 2.0]
1-element Array{Any,1}:
5.5
```

For reference, broadcasting deduces the optimal eltype:

```julia
julia> Real[1 2] .* Real[1.5; 2.0]
2×2 Array{Float64,2}:
1.5 3.0
2.0 4.0
```

Maybe generic mul should do the same, such that subsequent dispatches can be fast.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.