From: Luke Kenneth Casson Leighton Date: Thu, 29 Sep 2022 08:45:39 +0000 (+0100) Subject: fix reporting in remapmatrix.py X-Git-Tag: opf_rfc_ls005_v1~270 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a1fb20eac82e38ef38a8f12c8d06e3ccf36f05f;p=libreriscv.git fix reporting in remapmatrix.py --- diff --git a/openpower/sv/remapmatrix.py b/openpower/sv/remapmatrix.py index c9c81f214..6561d0990 100644 --- a/openpower/sv/remapmatrix.py +++ b/openpower/sv/remapmatrix.py @@ -56,10 +56,10 @@ def matrix_demo(): 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) @@ -77,8 +77,8 @@ def matrix_demo(): 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