Skip to content

Commit

Permalink
Mutable sum of array to array
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Apr 16, 2024
1 parent e918f95 commit e34353d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/implementations/LinearAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e34353d

Please sign in to comment.