Hi, I'm learning to work with PP (yeah!). I have a correlation function that has a signature like "inner" Signature: (a(n); b(n); [o]c()). Both my function and "inner" threads correctly if one of the pdl is 1D (or with empty extra dim), but fails (as per my intention) when both pdls are 2D. For instance here, my intent is to get back a 5 x 2 matix, but
perldl> $a = random 10, 5 perldl> $b = sequence 10, 2 perldl> p $a->inner($b) PDL: PDL::Primitive::inner(a,b,c): Parameter 'b' PDL: Mismatched implicit thread dimension 0: should be 5, is 2 Caught at file (eval 97), line 4, pkg main perldl> p $a->inner($b( ,0)) [ 27.700621 22.191472 19.461998 27.395397 27.038342] Is there an easy way to make it thread thru the 1st pdl, then thread thru the 2nd pdl? Thanks, Maggie
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
