1 | initial version |
"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()): ...
2 | No.2 Revision |
"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): ...
3 | No.3 Revision |
"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.)
4 | No.4 Revision |
"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.)