Skip to content

Commit 3e72ca6

Browse files
committed
fix the in-place hessvp
1 parent 24cc450 commit 3e72ca6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/exp-kernel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ where the `expk` objective was last evaluated:
6060
"""
6161
function hessvp!(expk::ExpKernel{T}, z::AbstractVector{T}) where T
6262
g = expk.g
63-
z = g.*z
63+
z .= g.*z
6464
return z
6565
end

src/logsumexp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ where the `lse` objective was last evaluated:
9494
"""
9595
function hessvp!(lse::LogExpFunction{T}, z::AbstractVector{T}) where T
9696
g = lse.g
97-
z = g.*(z .- (dot(g, z)))
97+
z .= g.*(z .- (dot(g, z)))
9898
return z
9999
end

0 commit comments

Comments
 (0)