Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Perl PDL slower than python numpy (Updated2)

by etj (Priest)
on Apr 19, 2022 at 22:55 UTC ( [id://11143111]=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

2022 updates to this excellent note:
  • with 2.058, zeroes was optimised so that the ndarray is initialised using memset (see https://github.com/PDLPorters/pdl/issues/274 for discussion and measurements).
  • with 2.077, the PDL shells have a with_time { code... } function to make this sort of measurement easier.
Observation: the first command of the above snippet is slightly quicker than the rest; this may be because the following ones, in assigning to e.g. $y, will trigger the destruction of the previous contents of that variable, which is likely to take some time.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2025-06-17 04:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.