Determinant and transpose of matrices