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

[NDTensors] [BUG] similartype(::Diagonal) returns Vector instead of Matrix #1566

Closed
mtfishman opened this issue Nov 5, 2024 · 0 comments · Fixed by #1570
Closed

[NDTensors] [BUG] similartype(::Diagonal) returns Vector instead of Matrix #1566

mtfishman opened this issue Nov 5, 2024 · 0 comments · Fixed by #1570
Labels
bug Something isn't working NDTensors Requires changes to the NDTensors.jl library.

Comments

@mtfishman
Copy link
Member

mtfishman commented Nov 5, 2024

For example:

julia> using LinearAlgebra: Diagonal

julia> using NDTensors.TypeParameterAccessors: similartype

julia> similartype(Diagonal{Float64,Vector{Float64}})
Vector{Float64} (alias for Array{Float64, 1})

Hit this in #1560.

@mtfishman mtfishman added bug Something isn't working NDTensors Requires changes to the NDTensors.jl library. labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working NDTensors Requires changes to the NDTensors.jl library.
Projects
None yet
1 participant