ydim2 = len(Y)
# print out X and Y
- print ("X:")
+ print ("X:", xdim1, ydim1)
for r in X:
print ("\t", r)
- print ("Y:")
+ print ("Y:", xdim2, ydim2)
for r in Y:
print ("\t", r)
for j in range(len(Y[0])): # xdim2
print ("order %d res %d X %d Y %d" % \
(count,
- (i*xdim2)+j, # result linear array index
- (i*xdim1)+k, # X linear array index
+ (i*ydim1)+j, # result linear array index
+ (i*ydim1)+k, # X linear array index
(k*xdim2)+j)) # Y linear array index
result[i][j] += X[i][k] * Y[k][j]
count += 1