Exemple #1
0
 def _eval_transpose(self):
     # Flip all the individual matrices
     matrices = [transpose(matrix) for matrix in self.blocks]
     # Make a copy
     M = Matrix(self.blockshape[0], self.blockshape[1], matrices)
     # Transpose the block structure
     M = M.transpose()
     return BlockMatrix(M)
Exemple #2
0
 def _eval_conjugate(self):
     return transpose(self.arg)
Exemple #3
0
 def _eval_transpose(self):
     return MatMul(*[transpose(arg) for arg in self.args[::-1]]).doit()
Exemple #4
0
 def _eval_transpose(self):
     return MatAdd(*[transpose(arg) for arg in self.args]).doit()
Exemple #5
0
 def transpose(self):
     from diofant.matrices.expressions.transpose import transpose
     return transpose(self)