Exercise 4.1: Multidimensional Dot Products

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


Previous Section


If you have any questions about this page, or want more information about the Sisal Language Project, contact:
John Feo at (510) 422-6389 or feo@diego.llnl.gov, or Tom DeBoni at (510) 423-3793 or deboni@llnl.gov.

The Sisal Language Project has been approved as a Designated Unclassified Subject Area (DUSA) K19222, as of 07 August, 1991.

LLNL Disclaimer
UCRL-MI-122601