From a00631d68a14c6274a1225a7992f9f2937f75238 Mon Sep 17 00:00:00 2001 From: Andrey Miroshnikov Date: Thu, 19 Oct 2023 06:49:14 +0000 Subject: [PATCH] Readded the flatten func (removed accidentally) --- src/openpower/decoder/isa/test_caller_svp64_matrix.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openpower/decoder/isa/test_caller_svp64_matrix.py b/src/openpower/decoder/isa/test_caller_svp64_matrix.py index f25d3c69..6fd64a2c 100644 --- a/src/openpower/decoder/isa/test_caller_svp64_matrix.py +++ b/src/openpower/decoder/isa/test_caller_svp64_matrix.py @@ -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): -- 2.30.2