clip is nice. I think first 2 lines can be shorter and more efficient: no need to generate possibly ginormous random array and then index into
$view = $x->whereND($x == 0) $view .= $view->random < .5
In reply to Re^2: PDL, applying function
by Anonymous Monk
in thread PDL, applying function
by rootcho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |