Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Perl PDL slower than python numpy

by syphilis (Archbishop)
on Sep 22, 2020 at 14:36 UTC ( #11122086=note: print w/replies, xml ) Need Help??


in reply to Re: Perl PDL slower than python numpy (Updated2)
in thread Perl PDL slower than python numpy

My answer doesn't explain the observed speed comparison.

Might it simply be that numpy is optimized to recognize that $X + $Y is $Y, and $X / $Y is $X ?
(Whereas PDL goes to the trouble of doing the arithmetic.)

Cheers,
Rob
  • Comment on Re^2: Perl PDL slower than python numpy

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2022-09-26 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (116 votes). Check out past polls.

    Notices?