diff --git a/Real/real.pd b/Real/real.pd index 074c226..2519b1c 100644 --- a/Real/real.pd +++ b/Real/real.pd @@ -10584,37 +10584,25 @@ EOT ); -pp_def( - 'augment', - DefaultFlow => 1, - TwoWay => 1, - Pars => 'x(n); y(p);[o]out(q=CALC($SIZE(n)+$SIZE(p)))', - Code => ' - loop(n) %{ - $out(q=>n) = $x(); - %} - register PDL_Indx i,j = 0; - for (i=$SIZE(n); i < $SIZE(q); i++,j++) - $out(q=>i) = $y(p=>j); - ', - BackCode => ' - loop(n) %{ - $x() = $out(q=>n); - %} - register PDL_Indx i,j = 0; - for (i=$SIZE(n); i < $SIZE(q); i++,j++) - $y(p=>j) = $out(q=>i); - ', - Doc => < 1, + TwoWay => 1, + Pars => 'x(n); y(p);[o]out(q=CALC($SIZE(n)+$SIZE(p)))', + GenericTypes => [ppdefs_all()], + Code => ' +loop (q=:$SIZE(n)) %{ $out() = $x(n=>q); %} +loop (q=$SIZE(n)) %{ $out() = $y(p=>q-$SIZE(n)); %} +', + BackCode => ' +loop (q=:$SIZE(n)) %{ $x(n=>q) = $out(); %} +loop (q=$SIZE(n)) %{ $y(p=>q-$SIZE(n)) = $out(); %} +', + Doc => <