Skip to content

Commit

Permalink
solving conflict, update
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes14 authored and fingolfin committed Nov 6, 2023
1 parent 72b89f5 commit 8909634
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/src/polynomial.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ ordering_lp(nvars::Int = 1)
```

```@docs
ordering_rp(nvars::Int = 1)
ordering_ip(nvars::Int = 1)
```

```@docs
Expand Down Expand Up @@ -182,7 +182,7 @@ ordering_ls(nvars::Int = 1)
```

```@docs
ordering_rs(nvars::Int = 1)
ordering_is(nvars::Int = 1)
```

```@docs
Expand Down
12 changes: 2 additions & 10 deletions src/poly/orderings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ function AbstractAlgebra.expressify(a::sordering; context = nothing)
for i in a.data
if i.order == ringorder_lp
this = Expr(:call, :ordering_lp, i.size)
elseif i.order == ringorder_rp
this = Expr(:call, :ordering_ip, i.size)
elseif i.order == ringorder_ip
this = Expr(:call, :ordering_ip, i.size)
elseif i.order == ringorder_dp
Expand All @@ -25,8 +23,6 @@ function AbstractAlgebra.expressify(a::sordering; context = nothing)
this = Expr(:call, :ordering_Ip, i.size)
elseif i.order == ringorder_ls
this = Expr(:call, :ordering_ls, i.size)
elseif i.order == ringorder_rs
this = Expr(:call, :ordering_is, i.size)
elseif i.order == ringorder_is
this = Expr(:call, :ordering_is, i.size)
elseif i.order == ringorder_ds
Expand Down Expand Up @@ -106,7 +102,7 @@ lexicographical ordering (:lex).
ordering_lp(nvars::Int = 1) = _basic_ordering(Singular.ringorder_lp, nvars)

@doc raw"""
ordering_rp(nvars::Int = 1)
ordering_ip(nvars::Int = 1)
Represents a block of at least `nvars` variables with the
inverse lexicographical ordering (:invlex).
Expand Down Expand Up @@ -176,7 +172,7 @@ negative lexicographical ordering (:neglex).
ordering_ls(nvars::Int = 1) = _basic_ordering(Singular.ringorder_ls, nvars)

@doc raw"""
ordering_rs(nvars::Int = 1)
ordering_is(nvars::Int = 1)
Represents a block of at least `nvars` variables with the
negative inverse lexicographical ordering (:neginvlex).
Expand Down Expand Up @@ -337,14 +333,10 @@ function is_ordering_symbolic_with_symbol(a::sordering)
o = a.data[1].order
if o == ringorder_lp
return (true, :lex)
elseif o == ringorder_rp
return (true, :invlex)
elseif o == ringorder_ip
return (true, :invlex)
elseif o == ringorder_ls
return (true, :neglex)
elseif o == ringorder_rs
return (true, :neginvlex)
elseif o == ringorder_is
return (true, :neginvlex)
elseif o == ringorder_dp
Expand Down

0 comments on commit 8909634

Please sign in to comment.