From New CPS615 Foils-- 28 August 95 CPS615 Basic Simulation Track for Computational Science -- Fall Semester 95. byNancy McCracken and Geoffrey C. Fox
There are a set of reduction functions already exemplied by sum
Here is another example of sum reducing over first dimension (columns) and over second dimension(rows)