changeset 31205:b0e90ca8e679 stable

quad2d: fix unintended complex conjugate return (bug #62972) quad2d: use .' instead of ' to avoid complex conjugate in q and qerr.
author Arun Giridhar <arungiridhar@gmail.com>
date Sun, 28 Aug 2022 12:21:17 -0400
parents 075443476dfb
children 7ae0a0772e9d 1c40fc2344f4
files scripts/general/quad2d.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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