$m$-symplectic matrices