Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 2021 by chr.schu...@gmx.de: cross product always returns
(1,3)-Matrix
http://code.google.com/p/sympy/issues/detail?id=2021
Hi,
I encountered a minor problem: The cross product always returns a (1,3)
matrix which is most inconvinient for me. I would suggest changing lines
1058 and 2040 in sympy/matrices/matrices.py from
return Matrix(1,3,((self[1]*b[2] - self[2]*b[1]),
to
return Matrix(self.rows,self.cols,((self[1]*b[2] - self[2]*b[1]),
so that it returns the same shape as its first argument (1,3) or (3,1)
respectively. You'll also find a patch attached.
Regards,
Christian
PS: Unfortunately, all line ends seem to be corrupted (\r\n) in every file,
so I am not sure whether it will pass the code quality test.
Attachments:
0001-cross-product-returns-same-shape-as-first-argument-s.patch 1.8 KB
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.