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

not supporting Diagonal with lazy diag #31

Closed
putianyi889 opened this issue Dec 23, 2024 · 0 comments · Fixed by #32
Closed

not supporting Diagonal with lazy diag #31

putianyi889 opened this issue Dec 23, 2024 · 0 comments · Fixed by #32

Comments

@putianyi889
Copy link
Owner

JuliaLang/LinearAlgebra.jl#1158

julia> A=Diagonal(1:5)
5×5 Diagonal{Int64, UnitRange{Int64}}:
 1  ⋅  ⋅  ⋅  ⋅
 ⋅  2  ⋅  ⋅  ⋅
 ⋅  ⋅  3  ⋅  ⋅
 ⋅  ⋅  ⋅  4  ⋅
 ⋅  ⋅  ⋅  ⋅  5

julia> convert_eltype(Float64,A)
ERROR: MethodError: Cannot `convert` an object of type Vector{Int64} to an object of type StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}
The function `convert` exists, but no method is defined for this combination of argument types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant