# Reference: isPanmagicSquare

isPanmagicSquare(M), where M is a real matrix, returns true if and only if M is a panmagic (or, diabolic) square. A panmagic square is a N×N magic square such that also every broken diagonal sums up to the magic constant of the square. The panmagic square need not be a normal magic square. See also: isNormalPanmagicSquare