Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2011-10-15 Thread sympy
Comment #22 on issue 2106 by asmeu...@gmail.com: Matrix of shape (1,1) and a number can't be added http://code.google.com/p/sympy/issues/detail?id=2106 Do people still want this? I think it's a bad idea. -- You received this message because you are subscribed to the Google Groups

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2011-10-15 Thread sympy
Comment #23 on issue 2106 by smi...@gmail.com: Matrix of shape (1,1) and a number can't be added http://code.google.com/p/sympy/issues/detail?id=2106 If we aren't going to support other dimensions (adding a constant to all elements) then I don't think we should support the 1x1. But I'm in

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-12-01 Thread sympy
Comment #17 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 reply to comment 14: It would make sense to define the A*B operation (where A and B are Matrix instances) as If dimensions of neighbouring indeces

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-12-01 Thread sympy
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

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-12-01 Thread sympy
Comment #19 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 reply to comment 14: You can also put it differently: If 1x1 matrices were the same as scalars, it would make sense. I think that you mean that the

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-12-01 Thread sympy
Comment #20 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 reply to comment 14: You can also put it differently: If 1x1 matrices were the same as scalars, it would make sense. I agree that you the matrix

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-12-01 Thread sympy
Comment #21 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 reply to comment 15: I'd prefer the expression 1 + X not to be defined if X is a not 1x1 Matrix. -- You received this message because you are

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-11-30 Thread sympy
Comment #11 on issue 2106 by ronan.l...@gmail.com: Matrix of shape (1,1) and a number can't be added http://code.google.com/p/sympy/issues/detail?id=2106 I'm not sure what exactly is the suggestion here, but in any case 1*1 matrices shouldn't be handled specially. Also, I don't think

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-11-30 Thread sympy
Comment #12 on issue 2106 by Vinzent.Steinberg: Matrix of shape (1,1) and a number can't be added http://code.google.com/p/sympy/issues/detail?id=2106 Well, you could define the addition componentwise, this makes sense. And this is what numpy/mpmath are doing. I thinks it's fine to let

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-11-30 Thread sympy
Comment #13 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 Well, I think that if SymPy distinguishes between 1x1 matrices and scalars, the Matrix.trace() function, for example, should be redefined. Because

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-11-28 Thread sympy
Comment #10 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 I encountered the problem only when I was adding or subtracting 1x1 matrices and scalars. So, maybe you could use some workaround like this in