Comment #9 on issue 2106 by smichr: Matrix of shape (1,1) and a number can't be added
http://code.google.com/p/sympy/issues/detail?id=2106
A web page shows that in maple this can be done as:
map(`+`, A, a);
or
A +~ a;
Comment #3 says it should not work this way but proposes that scalar + matrix of dimension 1 be a scalar. I would be +1 on the former (in line with Maple's behavior). As to the latter, if there is nothing you can do with a 1x1 matrix that you can't do with a scalar then I would be in favor of always recasting a 1x1 as a scalar. BUT...who knows why someone may have wanted to show something as a 1x1 matrix (like the unevaluated integral issue) in which case I don't think the product should produce a scalar.
-- 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.
