Skip to content

Commit

Permalink
namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Jun 30, 2023
1 parent 0d4c0fe commit 19b2292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FillArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ const Eye{T,Axes} = RectOrDiagonal{T,Ones{T,1,Tuple{Axes}}}

isone(::SquareEye) = true

function LinearAlgebra.diag(E::Eye, k::Integer=0)
function diag(E::Eye, k::Integer=0)
v = k == 0 ? oneunit(eltype(E)) : zero(eltype(E))
len = length(diagind(E, k))
Fill(v, len)
Expand Down

0 comments on commit 19b2292

Please sign in to comment.