Copy permuted matrix