Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Boosting workaround [Was: PDL's error or mine?]

by jo37 (Deacon)
on Feb 23, 2023 at 14:14 UTC ( [id://11150553]=note: print w/replies, xml ) Need Help??


in reply to Re: Boosting workaround [Was: PDL's error or mine?]
in thread PDL's error or mine?

You are perfectly right because I had a typo in my example. It should read ->which(...) instead of ->where(...). In that case, the condition cannot be violated.

Greetings,
-jo

$gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$

Replies are listed 'Best First'.
Re^3: Boosting workaround [Was: PDL's error or mine?]
by Anonymous Monk on Feb 23, 2023 at 16:38 UTC

    OK... It was un-runnable pseudo-code anyway; and which as function expects single argument; and, as a method, should be called on a mask without other arguments, right?

    Even then, I'm confused, wouldn't you get exactly same result (i.e. $intersect) by simply and-ing ("&") the 2 masks and calling which on it? If example was just simplified for laymen to this tautology, I certainly expect no explanation, sorry to bother.

      ...wouldn't you get exactly same result (i.e. $intersect) by simply and-ing ("&") the 2 masks and calling which on it?

      Yes. Thank you!

      Greetings,
      -jo

      $gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11150553]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found