Skip to content

Commit

Permalink
use integer summation
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamSwayne committed Nov 26, 2023
1 parent 38ef7ce commit ec0d2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linear_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# simple matrix sum function
def sumMatrix(matrix):
return sum(sum(row) for row in matrix)
return int(sum(sum(row) for row in matrix))


# solve linear system
Expand Down

0 comments on commit ec0d2d2

Please sign in to comment.