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=4f7ef5444a08fb0196f224e7266b151dacd49c0a;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):