Skip to content

Commit bb88a88

Browse files
Update src/rules.jl
Co-authored-by: Brian Chen <ToucheSir@users.noreply.github.com>
1 parent 33af9b8 commit bb88a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function apply!(o::Rprop, state, x, dx)
166166
ℓ, Γ = o.ell, o.gamma
167167
g, η = state
168168

169-
signs = map(g, dx) do g, dx
169+
signs = broadcast(g, dx) do g, dx
170170
s = sign(g * dx)
171171
s > 0 ? ℓ[2] : s < 0 ? ℓ[1] : one(eltype(dx))
172172
end

0 commit comments

Comments
 (0)