Skip to content
Snippets Groups Projects
Verified Commit 072e80f0 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

use permutedims instead of adjoint

it does not try to take complex conjugates
parent af1bd527
No related branches found
No related tags found
No related merge requests found
......@@ -348,8 +348,9 @@ function update_gradient_tracker_till_time!(walker::PathwayWalker, key::Tuple, n
end
function update_gradient_tracker_till_time!(gradient_tracker::GradientTracker, new_time::VariableType)
@show gradient_tracker.qvec
gradient_tracker.bmat += (
(gradient_tracker.qvec .* gradient_tracker.qvec') .*
(gradient_tracker.qvec .* permutedims(gradient_tracker.qvec)) .*
(new_time - gradient_tracker.last_gradient_time)
)
gradient_tracker.last_gradient_time = new_time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment