This kind of task is easily solved with MATHSERV
http://www.engs-comp.com/mathserv/index.html
For example, type in any word processor:
A = {1,3,6,8,4}
B = {5,6,2,3,9}
C = mattranspose(B)
D = matmult(A,C)
print using "####"; D
(this command returns a 5x5 matrix)
5 6 2 3 9...