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