One can do this: In [20]: a = Matrix([1,2,3])
In [21]: a[0:1,0]=[5] In [22]: a Out[22]: ⎡5⎤ ⎢ ⎥ ⎢2⎥ ⎢ ⎥ ⎣3⎦ In [23]: a[0:2,0]=[10,20] In [24]: a Out[24]: ⎡10⎤ ⎢ ⎥ ⎢20⎥ ⎢ ⎥ ⎣3 ⎦ And also this: In [31]: a = eye(3) In [32]: a[0:2,0:2] = 3*eye(2) In [33]: a Out[33]: ⎡3 0 0⎤ ⎢ ⎥ ⎢0 3 0⎥ ⎢ ⎥ ⎣0 0 1⎦ And the __setitem__ method is not using any code from copyin_*. Is this duplication of code and generally duplication of functionality? -- You received this message because you are subscribed to the Google Groups "sympy" 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?hl=en.
