Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector spaces of IsVectorObj objects #5347

Open
ThomasBreuer opened this issue Jan 26, 2023 · 0 comments
Open

Vector spaces of IsVectorObj objects #5347

ThomasBreuer opened this issue Jan 26, 2023 · 0 comments

Comments

@ThomasBreuer
Copy link
Contributor

ThomasBreuer commented Jan 26, 2023

In principle, it is possible to create vector spaces of IsVectorObj objects.

gap> vecs:= [ Vector( IsPlistVectorRep, GF(2), [ 0, 1 ] * Z(2) ) ];;
gap> v:= VectorSpace( GF(2), vecs );
<vector space over GF(2), with 1 generator>

(The changes from #4797 have provided several methods that deal with this case.)

However, a lot of functionality is missing.

gap> Dimension( v );
Error, no method found! ...
gap> b:= Basis( v );;
gap> BasisVectors( b );
Error, no method found! ...
gap> Coefficients( b, vecs[1] );
Error, no method found! ...
gap> z:= Zero( v );  # yields a list not in `IsPlistVectorRep`
<an immutable GF2 vector of length 2>
gap> z in v;
Error, no method found!

One problem with the current setup is that the filter IsNonGaussianRowSpace gets set for certain vector spaces, which enables IsHandledByNiceBasis, but the underlying functionality does not fit. An example is

gap> vecs:= [ Vector( IsPlistVectorRep, GF(4), [ 0, 1 ] * Z(2) ) ];;
gap> v:= VectorSpace( GF(2), vecs );;
gap> Dimension( v );
Error, no method found!
[...]

where the error message is different from the above one.

I am not sure how to deal with the open ends, and have started a discussion on this topic, see #5346. Comments are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant