Exercise 4.2: Multidimensional Max

Given: two two_dimensional arrays, x and y, of equal size and range;
Compose: a loop that returns the value of the largest dot (or inner) product of each pair of corresponding rows.
for x_row in x dot y_row in y
returns value of greatest for i in 1, row_size
                          returns value of sum x_row[i] * y_row[i]
                          end for
end for


Previous Section