Use slicing like q[:,0] Sent from Mail for Windows 10
From: [email protected] Sent: 03 May 2019 13:20 To: sympy Subject: [sympy] Creating a new matrix with removing columns in anoter doesn'twork 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/e3949e3d-12d0-4154-865a-6b5b0c42b203%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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/5ccbf5d4.1c69fb81.f2e53.bc2e%40mx.google.com. For more options, visit https://groups.google.com/d/optout.
