Skip to content

Commit

Permalink
Bugfix: missing an abs in translate_z
Browse files Browse the repository at this point in the history
  • Loading branch information
ilent2 committed Jul 26, 2019
1 parent 4e800da commit 0ca90d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion +ott/+utils/translate_z.m
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
end

% Keep B real until the end, makes things run faster
B = 1i*2*pi*z*B;
B = 1i*2*pi*abs(z)*B;

% This is faster than A = A + sparse(...) and A(sub2ind(...)) = [...]
if z < 0
Expand Down

0 comments on commit 0ca90d4

Please sign in to comment.