Skip to content

Commit

Permalink
correct fill!
Browse files Browse the repository at this point in the history
  • Loading branch information
bmxam committed Nov 4, 2023
1 parent 56d4f85 commit 3a7a137
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,7 @@ end

# Usefull in case of wrapped sparse matrix. Maybe it would more clever to specialize
# directly Base.eachindex?
Base.fill!(A::HauntedArray, x) = fill!(parent(A), x)
function Base.fill!(A::HauntedArray, x)
fill!(parent(A), x)
return A
end

0 comments on commit 3a7a137

Please sign in to comment.