Skip to content

Commit

Permalink
Merge branch 'master' into js/ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma authored Feb 16, 2024
2 parents ffc9a55 + 0b5e698 commit 8679373
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/free_associative_algebra.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,4 @@ julia> g = Generic.groebner_basis([u*(x*y)^3 + u*(x*y)^2 + u + v, (y*x)^3*t + (y
julia> normal_form(u*(x*y)^3*s*t + u*(x*y)^2*s*t +u*s*t + v*s*t, g)
0
```
```
2 changes: 1 addition & 1 deletion src/generic/MPoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ ring.
"""
function gens(a::MPolyRing{T}) where {T <: RingElement}
n = a.num_vars
return [gen(a, i, Val{a.ord}) for i in 1:n]
return elem_type(a)[gen(a, i, Val{a.ord})::elem_type(a) for i in 1:n]
end

@doc raw"""
Expand Down
2 changes: 1 addition & 1 deletion src/misc/VarNames.jl
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ Setting `n=:no` disables creation of this method.
These macros behave like their `f(args..., varnames; kv...)` counterparts but also introduce the indexed `varnames` into the current scope.
The first version needs at least one `varnames` argument.
The third version calls the univariate method base method if it exists (e.g. `polynomial_ring(R, varname)`).
The third version calls the univariate base method if it exists (e.g. `polynomial_ring(R, varname)`).
Setting `macros=:no` disables macro creation.
Expand Down

0 comments on commit 8679373

Please sign in to comment.