A square matrix is half-magic if the sum of the numbers in each row and column is the same. Find a basis [math] for the vector space of [math] half-magic squares.

[math] [math] [math], [math] [math] [math].