51
SUMMA Algorithm (continued)
•For each col-row in the common dimension, flood the item and combine it
•
•[1..m,1..p]    C := 0.0;       -- Initialize C
•           for k := 1 to n do
•   [1..m,*]  Col := >>[ ,k] A; -- Flood kth col of A
•   [*,1..p]  Row := >>[k, ] B; -- Flood kth row of B
•[1..m,1..p]    C += Col*Row;   -- Combine elements
•           end;
•
SUMMA is the easiest MM algorithm to program in ZPL