This was broken in 2.4.3, but I fixed it in CVS in March. You might
want to install the latest CVS.
The old 'or' operation was
$result = uniq(cat($a, $b));
and this has been changed to
$result = uniq(append($a, $b));
as Doug indicated here.
Derek
Doug Hunt wrote:
Hi:
I'm not sure what is going on with setops, but you could try:
print $a->append($b)->uniq
--Doug
[EMAIL PROTECTED]
Software Engineer III
UCAR - COSMIC, Tel. (303) 497-2611
On Thu, 24 Jan 2008, [EMAIL PROTECTED] wrote:
I think I'm missing something on setops:
perldl> $a=pdl(1,2,3)
perldl> $b=pdl(3,4)
perldl> print setops($a,'AND',$b)
[3]
perldl> print setops($a,'XOR',$b)
[1 2 4]
perldl> #Everything above makes sense to me
perldl> print setops($a,'OR',$b)
PDL: PDL::Ops::assgn(a,b): Parameter 'b'
PDL: Mismatched implicit thread dimension 0: should be 2, is 3
Caught at file (eval 297), line 4, pkg main
I'd expect
[1 2 3 4]
What am I missing? Is there another way to join two piddles without
duplicates?
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl