-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Tridiagonal and UniformScaling are missing compatible operations #562
Comments
This seems to be due to the UnitRange rather than the structured matrix type.
The fix is probably to promote UnitRange similarly to the following:
But it will have to be hardcoded (maybe?) since UniformScaling has no internal container type. |
This was referenced Oct 4, 2018
Closed
Shall this be closed? The issue seems to be fixed on newer versions of Julia. julia> versioninfo()
Julia Version 1.4.0-rc2.0
Commit b99ed72c95 (2020-02-24 16:51 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 2
julia> λ = 2
2
julia> using LinearAlgebra # from the standard library, no install required
julia> A = Tridiagonal(2:5,1:5,1:4)
5×5 Tridiagonal{Int64,UnitRange{Int64}}:
1 1 ⋅ ⋅ ⋅
2 2 2 ⋅ ⋅
⋅ 3 3 3 ⋅
⋅ ⋅ 4 4 4
⋅ ⋅ ⋅ 5 5
julia> A - λ*I
5×5 Tridiagonal{Int64,UnitRange{Int64}}:
-1 1 ⋅ ⋅ ⋅
2 0 2 ⋅ ⋅
⋅ 3 1 3 ⋅
⋅ ⋅ 4 2 4
⋅ ⋅ ⋅ 5 3 |
It would probably be good to close with a test. |
Okay. I'll do that. |
ranocha
referenced
this issue
in ranocha/julia
Mar 21, 2020
ranocha
referenced
this issue
in ranocha/julia
Mar 21, 2020
fredrikekre
referenced
this issue
in JuliaLang/julia
Mar 21, 2020
oxinabox
referenced
this issue
in oxinabox/julia
Apr 8, 2020
ravibitsgoa
referenced
this issue
in ravibitsgoa/julia
Apr 9, 2020
KristofferC
referenced
this issue
in JuliaLang/julia
Apr 11, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: