def T(self): """The transpose of an expression. """ # Transpose of a scalar is that scalar. if self.is_scalar(): return self else: return types.transpose()(self)