Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
kalhankoul96 committed Nov 2, 2023
1 parent 8c42d9a commit e63d352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sam/onyx/generate_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e63d352

Please sign in to comment.