Skip to content

Commit 919d65d

Browse files
JakobAsslaenderdpo
authored andcommitted
Fix a bug in the derived adjoint
1 parent c5c9850 commit 919d65d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/adjtrans.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,11 @@ function mul!(
132132
else
133133
increase_nprod!(p)
134134
end
135+
conj!(res)
135136
if use_p5!
136-
tprod!(res, v, α, β)
137+
tprod!(res, conj.(v), conj(α), conj(β))
137138
else
138-
prod3!(res, tprod!, v, α, β, p.Mtu5)
139+
prod3!(res, tprod!, conj.(v), conj(α), conj(β), p.Mtu5)
139140
end
140141
conj!(res)
141142
end

0 commit comments

Comments
 (0)