A Class of Transformation Matrices and Its Applications