The Generalized Fierz Transformation and Its Application