Can pdl efficiently(*) perform the equivalent of the following operation on a piddle?
$pdl[ $_ -1 ] -= $pdl[ $_ ] for reverse 1 .. $#pdl;
(*)Ie. Without converting every element to a perl var, perform the math and then convert the result back, and assign it back.
In reply to PDL: efficient self-referencing math? by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |