Skip to content

List vs. Filtered #5693

Answered by fingolfin
alexdegt-ops asked this question in Q&A
Mar 27, 2024 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

I am not sure why you think any of this implies your installation is outdated or broken? I get the exact same output. Also note that nothing in that example involves immutable matrices either.

The root cause is that the code which implements iteration over vector spaces does not bother to return compressed vectors (possibly because it predates their invention). The function Filtered uses the iteration interface -- as does List(coll, func). But there is a special method List(vecspace) it seems. Hence:

gap> List(V);
[ <an immutable GF2 vector of length 3>, <an immutable GF2 vector of length 3>,
  <an immutable GF2 vector of length 3>, <an immutable GF2 vector of length 3>,
  <an immutable G…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fingolfin
Comment options

Answer selected by alexdegt-ops
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants