Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.9-rc1: regression in diagonal multiplication with 3-terms #992

Closed
dlfivefifty opened this issue Mar 15, 2023 · 1 comment
Closed

v1.9-rc1: regression in diagonal multiplication with 3-terms #992

dlfivefifty opened this issue Mar 15, 2023 · 1 comment
Labels
regression Regression in behavior compared to a previous version

Comments

@dlfivefifty
Copy link
Contributor

julia> versioninfo()
Julia Version 1.9.0-rc1.1
Commit b1b388a6d1 (2023-03-08 14:14 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin22.3.0)
  CPU: 4 × Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 1 on 4 virtual cores

julia> n = 10; *(Diagonal(ones(n)),Diagonal(1:n), Diagonal(ones(n)))
10×10 Matrix{Float64}:
 1.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0   0.0
 0.0  2.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0   0.0
 0.0  0.0  3.0  0.0  0.0  0.0  0.0  0.0  0.0   0.0
 0.0  0.0  0.0  4.0  0.0  0.0  0.0  0.0  0.0   0.0
 0.0  0.0  0.0  0.0  5.0  0.0  0.0  0.0  0.0   0.0
 0.0  0.0  0.0  0.0  0.0  6.0  0.0  0.0  0.0   0.0
 0.0  0.0  0.0  0.0  0.0  0.0  7.0  0.0  0.0   0.0
 0.0  0.0  0.0  0.0  0.0  0.0  0.0  8.0  0.0   0.0
 0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  9.0   0.0
 0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  10.0

This should return a Diagonal as in Julia v1.8:

julia> versioninfo()
Julia Version 1.8.3-pre.0
Commit d0156b5601 (2022-09-30 07:06 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin21.6.0)
  CPU: 4 × Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 4 virtual cores

julia> n = 10; *(Diagonal(ones(n)),Diagonal(1:n), Diagonal(ones(n)))

10×10 Diagonal{Float64, Vector{Float64}}:
 1.0                                     
     2.0                                 
         3.0                             
             4.0                         
                 5.0                     
                     6.0                 
                         7.0             
                             8.0         
                                 9.0     
                                     10.0
@N5N3
Copy link
Member

N5N3 commented Mar 17, 2023

close by JuliaLang/julia#49007

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Regression in behavior compared to a previous version
Projects
None yet
Development

No branches or pull requests

3 participants