Hi PDL Developers and Users, I have a quick and straight forward question ...
How does one get the indices from intersect function? What I imagine happening is something like: $a = pdl [ 1, 8, 10, -1, 0, 99] $b = pdl [ 8, 0, 11, 0, -1, 100, 1, 10, 7, 18, 0] $ida = index( $a , intersect( $a , $b ) ); #returns indices of $a that are in $b print '>>>ida: '.$ida.'\n'; >>> 0, 1, 2, 3, 4 $idb = index( $b , intersect( $a , $b ) ); #returns indices of $a that are in $b print '>>>idb: '.$idb.'\n'; >>> 0, 1, 3, 4, 6, 7, 10 Does anyone know you to do this with PDL? Cheers, Dan
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
