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)
def T(self): if self.size == (1,1): # Transpose of a scalar is that scalar. return self else: return types.transpose()(self)