next up previous contents
Next: Solution Up: Procedures and Modules Previous: Solution

 

Vector Multiplication - Array Valued Function

Write a function Outer that forms the outer product of two vectors. If A and B are vectors then the outer product is a matrix C such that tex2html_wrap_inline2928 .

Write a test program which accepts two integers giving the size of the A and B vectors, uses the RANDOM_NUMBER function to assign values and then prints the outer product.




next up previous contents
Next: Solution Up: Procedures and Modules Previous: Solution

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 14:10:26 GMT 1996