Comment #1 on issue 2106 by asmeurer: Matrix of shape (1,1) and a number
can't be added
http://code.google.com/p/sympy/issues/detail?id=2106
Well, first off, you should use hasattr(), not try, except AttributeError.
But aside from that, do you think it should also work with something like 1
+ Matrix([[3, 3], [3, 3]]), since things like 2*Matrix([[3, 3], [3, 3]])
work?
It works this way in Octave (and therefore I am assuming also in Matlab),
assuming I got the syntax correct:
octave:11> 1 + [[1 2]; [3 4]]
ans =
2 3
4 5
I would like to see if others who have more experience with matrix
calculations have an opinion.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.