Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Fast sliding submatrix sums with PDL (inspired by PWC 248 task 2)

by etj (Curate)
on Feb 15, 2024 at 20:45 UTC ( [id://11157717]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    pp_def('sms_WxH_pdlpp_4loops',
        Pars      => 'a(m,n); [o]b(p,q);',
    ...
            }
        ',
    );
    
  2. or download this
    pp_def('sms_WxH_pdlpp_4loops',
        Pars      => 'a(m,n); [o]b(p,q);',
    ...
                         $SIZE(q) = $SIZE(n) - $SIZE(h) + 1;',
        Code => 'loop(q,p,w,h) %{ $b() += $a(m=>p+w, n=>q+h); %}',
    );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-06-25 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.