# Revision history [back]

"Easily"? I don't know if this counts, but it works:

sage: V = GF(2)**6  # R is 6-dimensional as a vector space
sage: [R.from_vector(v) for v in V]
[0, [0 1]
[1 0], [0 1]
[1 1], [0 1]
[1 0] + [0 1]
[1 1], [1 0]
...


So you could do

sage: for r in (R.from_vector(v) for v in V.list()): ...


"Easily"? I don't know if this counts, but it works:

sage: V = GF(2)**6  # R is 6-dimensional as a vector space
sage: [R.from_vector(v) for v in V]
[0, [0 1]
[1 0], [0 1]
[1 1], [0 1]
[1 0] + [0 1]
[1 1], [1 0]
...


So you could do

sage: for r in (R.from_vector(v) for v in V.list()): V): ...


"Easily"? I don't know if this counts, but it works:

sage: V = GF(2)**6  # R is 6-dimensional as a vector space
sage: [R.from_vector(v) for v in V]
[0, [0 1]
[1 0], [0 1]
[1 1], [0 1]
[1 0] + [0 1]
[1 1], [1 0]
...


So you could do

sage: for r in (R.from_vector(v) for v in V): ...


(Or just iterate over V, calling R.from_vector(...) each time.)

"Easily"? I don't know if this counts, but it works:

sage: R = GroupAlgebra( GL(2, Zmod(2)), Zmod(2))
sage: V = GF(2)**6  # R is 6-dimensional as a vector space
sage: [R.from_vector(v) for v in V]
[0, [0 1]
[1 0], [0 1]
[1 1], [0 1]
[1 0] + [0 1]
[1 1], [1 0]
...


So you could do

sage: for r in (R.from_vector(v) for v in V): ...


(Or just iterate over V, calling R.from_vector(...) each time.)