Readded the flatten func (removed accidentally)
authorAndrey Miroshnikov <andrey@technepisteme.xyz>
Thu, 19 Oct 2023 06:49:14 +0000 (06:49 +0000)
committerAndrey Miroshnikov <andrey@technepisteme.xyz>
Thu, 19 Oct 2023 06:49:14 +0000 (06:49 +0000)
src/openpower/decoder/isa/test_caller_svp64_matrix.py

index f25d3c69a2d4fe66819b0e4b43b0796aa9bfe452..6fd64a2c702fe72dd30a24078e17326575b4221d 100644 (file)
@@ -44,6 +44,9 @@ def matmult_inner(a,b):
 
     return result
 
+# Flatten list of lists matrix down to single list
+def flatten(l):
+    return [item for sublist in l for item in sublist]
 
 
 class DecoderTestCase(FHDLTestCase):