Skip to content

Commit

Permalink
nvars
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Jan 18, 2024
1 parent bfea95c commit 9b0f924
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/flint/fmpq_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function check_parent(a::QQMPolyRingElem, b::QQMPolyRingElem)
error("Incompatible polynomial rings in polynomial operation")
end

nvars(a::QQMPolyRing) = ccall((:fmpq_mpoly_ctx_nvars, libflint), Int,
number_of_variables(a::QQMPolyRing) = ccall((:fmpq_mpoly_ctx_nvars, libflint), Int,
(Ref{QQMPolyRing}, ), a)

base_ring(a::QQMPolyRing) = FlintQQ
Expand Down
2 changes: 1 addition & 1 deletion src/flint/fmpz_mod_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function check_parent(a::($etype), b::($etype))
error("Incompatible polynomial rings in polynomial operation")
end

nvars(a::($rtype)) = a.nvars
number_of_variables(a::($rtype)) = a.nvars

base_ring(a::($rtype)) = a.base_ring

Expand Down
2 changes: 1 addition & 1 deletion src/flint/fmpz_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function check_parent(a::ZZMPolyRingElem, b::ZZMPolyRingElem)
error("Incompatible polynomial rings in polynomial operation")
end

nvars(a::ZZMPolyRing) = ccall((:fmpz_mpoly_ctx_nvars, libflint), Int,
number_of_variables(a::ZZMPolyRing) = ccall((:fmpz_mpoly_ctx_nvars, libflint), Int,
(Ref{ZZMPolyRing}, ), a)

base_ring(a::ZZMPolyRing) = FlintZZ
Expand Down
2 changes: 1 addition & 1 deletion src/flint/fq_default_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ symbols(a::FqMPolyRing) = symbols(a.data)

parent(a::FqMPolyRingElem) = a.parent

nvars(a::FqMPolyRing) = nvars(a.data)
number_of_variables(a::FqMPolyRing) = number_of_variables(a.data)

base_ring(a::FqMPolyRing) = a.base_ring

Expand Down
2 changes: 1 addition & 1 deletion src/flint/fq_nmod_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function check_parent(a::fqPolyRepMPolyRingElem, b::fqPolyRepMPolyRingElem)
error("Incompatible polynomial rings in polynomial operation")
end

nvars(a::fqPolyRepMPolyRing) = a.nvars
number_of_variables(a::fqPolyRepMPolyRing) = a.nvars

base_ring(a::fqPolyRepMPolyRing) = a.base_ring

Expand Down
2 changes: 1 addition & 1 deletion src/flint/nmod_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function check_parent(a::($etype), b::($etype))
error("Incompatible polynomial rings in polynomial operation")
end

nvars(a::($rtype)) = a.nvars
number_of_variables(a::($rtype)) = a.nvars

base_ring(a::($rtype)) = a.base_ring

Expand Down

0 comments on commit 9b0f924

Please sign in to comment.