Skip to content

Commit

Permalink
Update infarrays.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Mar 7, 2021
1 parent 4c99bf2 commit 2dddc9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/infarrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ end
# Diagonal
#####

one(D::Diagonal{T,<:AbstractFill{T,Tuple{OneToInf{Int}}}) where T = Eye{T}(size(D,1))
copy(D::Diagonal{T,<:AbstractFill{T,Tuple{OneToInf{Int}}}) where T = D
one(D::Diagonal{T,<:AbstractFill{T,1,Tuple{OneToInf{Int}}}}) where T = Eye{T}(size(D,1))
copy(D::Diagonal{T,<:AbstractFill{T,1,Tuple{OneToInf{Int}}}}) where T = D

BroadcastStyle(::Type{<:Diagonal{<:Any,<:AbstractInfUnitRange}}) = LazyArrayStyle{2}()

Expand Down

0 comments on commit 2dddc9d

Please sign in to comment.