Ask Your Question

Revision history [back]

click to hide/show revision 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?

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?