---------- Forwarded message ----------
From: Diab Jerius <[email protected]>
Date: Wed, Sep 27, 2017 at 5:13 PM
Subject: Re: [Pdl-general] Turning off threading?
To: Derek Lamb <[email protected]>
Cc: [email protected]


Derek,

Thanks.  I was hoping for some sort of "don't thread on me" flag.

Diab


On Wed, Sep 27, 2017 at 3:42 PM, Derek Lamb <[email protected]> wrote:

> Hi Diab,
>
> I'm not aware of any easy method to turn off threading.  It's embedded so
> deeply in the PDL core that one would have to rebuild PDL and probably
> heavily modify PP.  That's a lot more inelegant than your solution, I think.
>
> cheers,
> Derek
>
> > On Sep 26, 2017, at 9:38 AM, Diab Jerius <[email protected]>
> wrote:
> >
> > 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
>
>
------------------------------------------------------------------------------
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