Definition of matrix & transposition method