Skip to content

Commit 7405a19

Browse files
Tor FjeldeTor Fjelde
authored andcommitted
fused scalar operations
1 parent 45820d2 commit 7405a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RobustAdaptiveMetropolis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function ram_adapt(
159159
S = state.S
160160
# TODO: Make this configurable by defining a more general path.
161161
η = state.iteration^(-sampler.γ)
162-
ΔS = η * abs(Δα) * S * U / LinearAlgebra.norm(U)
162+
ΔS = (η * abs(Δα)) * S * U / LinearAlgebra.norm(U)
163163
# TODO: Maybe do in-place and then have the user extract it with a callback if they really want it.
164164
S_new = if sign(Δα) == 1
165165
# One rank update.

0 commit comments

Comments
 (0)