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

Metadata of QQ #75

Closed
linus-md opened this issue Sep 10, 2024 · 1 comment
Closed

Metadata of QQ #75

linus-md opened this issue Sep 10, 2024 · 1 comment

Comments

@linus-md
Copy link
Contributor

Hello,

is there a reason that the ring metadata is packaged differently for GF and QQ?
For example when I want to get the number of variables of a ring I would call

julia> R, vars = polynomial_ring(GF(101), ["x", "y"])
(Multivariate polynomial ring in 2 variables over GF(101), FqMPolyRingElem[x, y])

julia> R.data.nvars
2

for GF but for QQ it is

julia> S, vars = polynomial_ring(QQ, ["x", "y"])
(Multivariate polynomial ring in 2 variables over QQ, QQMPolyRingElem[x, y])
julia> S.data
ERROR: type QQMPolyRing has no field data
Stacktrace:
 [1] getproperty(x::Nemo.QQMPolyRing, f::Symbol)
   @ Base ./Base.jl:37
 [2] top-level scope
   @ REPL[19]:1

julia> S.nvars
2

I am not sure if this is an AlgebraicProblem or from one of the dependencies.

@ederc
Copy link
Collaborator

ederc commented Sep 10, 2024

This is due to Nemo, one of AlgebraicSolving's dependencies.

@ederc ederc closed this as completed Sep 10, 2024
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