Skip to content

Commit

Permalink
Improve performance in Fill addition (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub authored Aug 19, 2024
1 parent d0988b6 commit 222bfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fillalgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ end

@inline function fill_add(a::AbstractArray, b::AbstractFill)
promote_shape(a, b)
a .+ [getindex_value(b)]
a .+ (getindex_value(b),)
end
@inline function fill_add(a::AbstractArray{<:Number}, b::AbstractFill)
promote_shape(a, b)
Expand Down

0 comments on commit 222bfd8

Please sign in to comment.