| 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?
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.