# HG changeset patch # User Arun Giridhar # Date 1661703677 14400 # Node ID b0e90ca8e679c5a0c14b163af95772a554bc38a5 # Parent 075443476dfb3af1e89a75c212ab05e383c641f7 quad2d: fix unintended complex conjugate return (bug #62972) quad2d: use .' instead of ' to avoid complex conjugate in q and qerr. diff -r 075443476dfb -r b0e90ca8e679 scripts/general/quad2d.m --- a/scripts/general/quad2d.m Wed Aug 24 08:55:14 2022 -0700 +++ b/scripts/general/quad2d.m Sun Aug 28 12:21:17 2022 -0400 @@ -407,8 +407,8 @@ ty = ty * ones (1, 15); z = yhalfwidth .* f (x, y) .* ztrans(tx, ty) .* xhalfwidth; - q = weights15 * (weights15 * z)'; - qerr = abs (weights7 * (weights7 * z)' - q); + q = weights15 * (weights15 * z).'; + qerr = abs (weights7 * (weights7 * z).' - q); endfunction