From d9b97a2caf9a7596b9ff6e90292007a6b561a05e Mon Sep 17 00:00:00 2001 From: Ed J Date: Fri, 27 Dec 2024 18:34:36 +0000 Subject: [PATCH] take Inplace off re and im as not make sense - #511 --- lib/PDL/Ops.pd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PDL/Ops.pd b/lib/PDL/Ops.pd index 60ee313f0..0dab8423a 100644 --- a/lib/PDL/Ops.pd +++ b/lib/PDL/Ops.pd @@ -479,7 +479,7 @@ sub cfunc { Pars => 'complexv(); '.($make_real ? 'real' : '').' [o]b()', HandleBad => 1, NoBadifNaN => 1, - Inplace => 1, + ($make_real ? () : (Inplace => 1)), Code => pp_line_numbers(__LINE__-1, qq{ PDL_IF_BAD(if ( \$ISBAD(complexv()) ) \$SETBAD(b()); else,) $codestr