Comment #25 on issue 2106 by [email protected]: Matrix of shape (1,1) and a number can't be added
http://code.google.com/p/sympy/issues/detail?id=2106

So to do scalar addition one can do something like this:

[3,  4,  5]
[6,  7,  8]
[9, 10, 11]

or have their own function

def add_scalar(c, M):
    return c*ones(M.rows, M.cols) + M

[0, 1, 2]
[3, 4, 5]
[6, 7, 8]

[0, 1]
[3, 4]
[6, 7]

Should Matrix have a method to do that?

--
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.

Reply via email to