I want to sum up each row and column in matrix and check whether all of it are the same. I want to use sum of row and transpose method to do it, but I had no ideas how it can check whether sum of every row and column are the same.
Can please give me some algorithm guidance?