I am not sure if I should report this as a bug or if it is my misunderstanding. Throughout I am using giacpy 0.6.1
Consider the following code:
Code : Tout sélectionner
from giacpy import newMat
mat = newMat(2,2)
mat[1,1]=2
It seems that newMat does a shallow copy of [0,0]. This is similar to the following simple python command (which has the same problem because python does a shallow copy of the vectors:
Code : Tout sélectionner
mat = 2*[[0,0]]
mat[1][1] =2
Code : Tout sélectionner
from giacpy import giac
mat = giac([[0,0],[0,0]])
mat[1,1]=2