next up previous contents
Next: Maximum and Minimum Intrinsics Up: Arrays Previous: Homework   Contents

Vector and Matrix Multiplication Intrinsics

If A, B are conform, dimension one arrays, their dot product is computed by calling the function DOT_PRODUCT; the result is, of course, a scalar DP
DP = dot_product(A,B)

The meaning is

For two matrices C and D (at least one has dimension 2) their matrix-matrix product is given by

E = matmul(C,D)

The result is a matrix. The shapes of C, D, E have to obey the usual mathematical relation for matrix multiplication. Note that the matrix product MATMUL(C,D) is not equal to the element-by-element product C*D.

Adrian Sandu 2001-08-26