From e34353d3905a9061033889c848452c11b444e093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Tue, 16 Apr 2024 16:03:48 +0200 Subject: [PATCH] Mutable sum of array to array --- src/implementations/LinearAlgebra.jl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/implementations/LinearAlgebra.jl b/src/implementations/LinearAlgebra.jl index 00ff2b65..730b7cdc 100644 --- a/src/implementations/LinearAlgebra.jl +++ b/src/implementations/LinearAlgebra.jl @@ -146,6 +146,15 @@ function operate!(op::AddSubMul, A::Array, x, y, args::Vararg{Any,N}) where {N} return operate!(op, A, x, *(y, args...)) end +function operate_to!( + output::AbstractArray, + op::Union{typeof(+),typeof(-)}, + A::AbstractArray, + B::AbstractArray, +) + return Base.broadcast!(op, output, A, B) +end + # Product function similar_array_type(