The geometry of the hermitian matrix space and the Schrieffer-Wolff transformation