in reply to PDL, applying function
This would obviously benefit enormously from loop fusion or making your own custom PDL operation.$inds = $x->whichND($x == 0); $x->indexND($inds) .= ($x->random < 0.5)->indexND($inds); $x->inplace->clip(0,1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PDL, applying function
by Anonymous Monk on May 22, 2022 at 07:03 UTC | |
by etj (Priest) on May 22, 2022 at 17:32 UTC | |
|
Re^2: PDL, applying function
by etj (Priest) on Aug 16, 2024 at 15:12 UTC |