From 222bfd81da0e0dfae3a82b1897d86c5f5378df5d Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Mon, 19 Aug 2024 15:40:43 +0530 Subject: [PATCH] Improve performance in Fill addition (#371) --- src/fillalgebra.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fillalgebra.jl b/src/fillalgebra.jl index 405a60ad..94d763bd 100644 --- a/src/fillalgebra.jl +++ b/src/fillalgebra.jl @@ -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)