Skip to content

Commit

Permalink
Update src/implementations/LinearAlgebra.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 27, 2023
1 parent 4fc1169 commit 3aa6ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/implementations/LinearAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function similar_array_type(
return LinearAlgebra.Diagonal{S,similar_array_type(VT, S)}
end

similar_array_type(::Type{<:AbstractVector}, ::Type{T}} = Vector{T}
similar_array_type(::Type{<:AbstractVector}, ::Type{T}) where {T} = Vector{T}

similar_array_type(::Type{Array{T,N}}, ::Type{S}) where {S,T,N} = Array{S,N}

Expand Down

0 comments on commit 3aa6ecf

Please sign in to comment.