Unconstrained optimal transformation matrix