1 | initial version |
So an solution which work is to convert the vector to a list, append the new variable and convert to a vector again. The code for that would be as follows:
u = []
u = x.list()
u.append(sigma)
u = vector(u)
Do you see any potential problems with this solution? Why there is no method append in vector? Could I do better?
2 | No.2 Revision |
So an solution which work is to convert the vector to a list, append the new variable and convert to a vector again. The code for that would be as follows:
u = []
u = x.list()
u.append(sigma)
u = vector(u)
Do you see any potential problems with this solution? Why there is no method append in vector? Could I do better?