Python Simplest With Explaination
\nclass Solution:\n    def maxMatrixSum(self, matrix: List[List[int]]) -> int:\n        \n        num = [j for i in matrix for j in i] #make all as plain list\n
```\nclass Solution:\n    def maxMatrixSum(self, matrix: List[List[int]]) -> int:\n        \n        num = [j for i in matrix for j in i] #make all as plain list\n        negative = (sum(1 for i in num if i<0))%2 #see the number of negative is odd or even\n        num = [abs(i) for i in num] #turn all to positive\n        \n        if negative: #if odd, only 1 will become negative\n            min_ = min(num) #get the minimum \n            return sum(num) - min_*2 #substract it from the sum\n        else:\n            return sum(num) #return sum\n```
[]