BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PDL: efficient self-referencing math?
by Corion (Patriarch) on Sep 04, 2011 at 08:02 UTC | |
by BrowserUk (Patriarch) on Sep 04, 2011 at 08:30 UTC | |
|
Re: PDL: efficient self-referencing math?
by etj (Priest) on May 26, 2022 at 13:31 UTC | |
|
Re: PDL: efficient self-referencing math?
by Anonymous Monk on Sep 04, 2011 at 14:54 UTC |