in reply to Re^3: matching pdl elements
in thread matching pdl elements
perldl> p $a=sequence(5) [0 1 2 3 4] perldl> p $b=pdl(1,4,9,9,16) [1 4 9 9 16] **** To get the index of values in $a that can be found anywhere in $b +: perldl> $d=which(maximum (($a==$b->dummy)->xchg(0,1))!=0) perldl> p $d [1 4]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: matching pdl elements
by plobsing (Friar) on Sep 14, 2008 at 17:12 UTC |