Comment #18 on issue 2106 by mipavelka: Matrix of shape (1,1) and a number
can't be added
http://code.google.com/p/sympy/issues/detail?id=2106
However, if the meaning of * should be dot or tensor product, SymPy should
be able to handle (from associativity):
a*b*C as (a \cdot b) C == a \cdot (b \otimes C)
for a row vector a, column vector b and matrix C
but it would require to extend the Matrix class to something like a Tensor
class.
I understand that from the point of view of implementation and backward
compatibility it could be better to leave all as it is and to require the
1x1 matrix <-> scalar conversion explicitely. However, from the point of
view of mathematical clarity, it could be nice to be able to work with
tensors in the same fashion as with matrices and scalar.
--
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.