matrix contortions