tn function

Transposition and Inversion