From: Andrey Miroshnikov Date: Thu, 19 Oct 2023 06:49:14 +0000 (+0000) Subject: Readded the flatten func (removed accidentally) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a00631d68a14c6274a1225a7992f9f2937f75238;p=openpower-isa.git Readded the flatten func (removed accidentally) --- 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):