Matrix condition for one-to-one transformation