# Reference: isMagicSquare

isMagicSquare(M) returns true iff the real matrix M is a magic square, i.e. a square matrix such that the sum of all elements is equal in every row, column, and diagonal. The magic square need not be normal. Se also: isNormalMagicSquare.