Howdy!

I've run into a situation where I'd like this construct:

  all( $p1 == $p2 )

to fail if $p1 and $p2 have different shapes, e.g. no threading.

For example, this passes:

  all( pdl( [1] ) == pdl( [1], [1] ) )

when I would like it to fail.

I've come up with this rather inelegant approach:

  all( $p1->shape == $p2->shape ) && all( $p1 == $p2 )

but I'd like to avoid the shape comparison.

Is there a means of turning off threading?

Thanks,

Diab
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general

Reply via email to