q.copy() works. Thank you very much!

3 Mayıs 2019 Cuma 11:01:36 UTC+3 tarihinde Kalevi Suominen yazdı:
>
> Perhaps you should make a copy of q:  w = q.copy().
>
> Kalevi Suominen
>
> On Friday, May 3, 2019 at 10:50:29 AM UTC+3, [email protected] 
> <javascript:> wrote:
>
>> Hello,
>>   
>>     I am new to sympy and I want removed one column of a matrix and I 
>> want to keep the original one also but when I use col_del() command it 
>> deletes the column for all matrices. Do you have idea how I can keep 
>> original while I changing matrix with another name?
>> The example I am writing is like that
>>
>>     q=sp.Matrix([[x,x+1],[x-1,x+2]])
>>     
>>     w=q
>>     
>>     w.col_del(0)
>>     w1=w
>>
>>   Then all q, w, w1 have deleted columns but I want to keep q unchanged.
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/920c3849-e8ad-4cfc-9a17-a21b4774a12a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to