From e63d35247561a02103eae24de043d8eb4becc395 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 2 Nov 2023 13:33:00 -0700 Subject: [PATCH] fix style --- sam/onyx/generate_matrices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sam/onyx/generate_matrices.py b/sam/onyx/generate_matrices.py index 0600317d..dbba52a1 100644 --- a/sam/onyx/generate_matrices.py +++ b/sam/onyx/generate_matrices.py @@ -54,7 +54,7 @@ def _create_matrix(self, value_cap=int(math.pow(2, 8)) - 1): ''' Routine to create the actual matrix from the dimension/shape ''' - self.array = numpy.random.randint(low=-1*value_cap/2, high=value_cap/2, size=self.shape) + self.array = numpy.random.randint(low=-1 * value_cap / 2, high=value_cap / 2, size=self.shape) for idx, x in numpy.ndenumerate(self.array): if random.random() < self.sparsity: self.array[idx] = 0