From 1a1fb20eac82e38ef38a8f12c8d06e3ccf36f05f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 29 Sep 2022 09:45:39 +0100 Subject: [PATCH] fix reporting in remapmatrix.py --- openpower/sv/remapmatrix.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.30.2