> Could you give an example of how to convert a list (e.g. [1,2,3,4]) to a
> vector (e.g. (1,2,3,4) and back again? That would help me a lot.

sage: l = [1,2,3,4]
sage: v = vector(ZZ,l); v
(1, 2, 3, 4)
sage: list(v) # list of ZZs
[1, 2, 3, 4]
sage: map(int, list(v)) # list of ints
[1, 2, 3, 4]

Cheers,
Martin

-- 
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: [EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to