Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed May 27, 2024
1 parent ee48222 commit 55d9e5d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ end

# If A is `Symmetric`, we cannot do a normal broadcast because we might modify
# the same entry twice. See https://github.com/jump-dev/JuMP.jl/issues/2102
function broadcast!(op::F, A::Union{Array,SparseArrays.AbstractSparseArray}, args::Vararg{Any,N}) where {F<:Function,N}
function broadcast!(
op::F,
A::Union{Array,SparseArrays.AbstractSparseArray},
args::Vararg{Any,N},
) where {F<:Function,N}
bc = Broadcast.broadcasted(op, A, args...)
instantiated = Broadcast.instantiate(bc)
return copyto!(A, mutable_broadcasted(instantiated))
Expand Down

0 comments on commit 55d9e5d

Please sign in to comment.