Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Perl PDL slower than python numpy

by syphilis (Bishop)
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
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 chanting in the Monastery: (4)
As of 2021-03-08 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (127 votes). Check out past polls.

    Notices?