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

Iterators for matrix_space broken #1299

Open
mkirschm opened this issue Nov 28, 2023 · 1 comment
Open

Iterators for matrix_space broken #1299

mkirschm opened this issue Nov 28, 2023 · 1 comment

Comments

@mkirschm
Copy link

Iterators for 0-dimensional matrix spaces should not fail but return the zero element and nothing for subsequent calls

julia> k = GF(3);
julia> m = matrix_space(k, 0, 1);
julia> for x in m ; end
ERROR: BoundsError: attempt to access 0-element Vector{Nemo.fpField} at index [1]

Matrix algebras over finite rings should define an iterator:

julia> m = matrix_algebra(k, 1);
julia> for x in m; end
ERROR: MethodError: no method matching iterate(::AlgMat{fpFieldElem, fpMatrix})
@fingolfin
Copy link
Contributor

The first issue really is an issue in AbstractAlgebra; I've posted a fix at Nemocas/AbstractAlgebra.jl#1527

The second issue indeed is indeed Hecke specific.

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

2 participants