Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions experimental/ActionPolyRing/src/Types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,6 @@ mutable struct DifferencePolyRingElem{T} <: ActionPolyRingElem{T}
new{T}(upre, dpr, false, zeros(Int, length(upre)))
end

function DifferencePolyRingElem{T}(dpr::DifferencePolyRing{T}, mpre::MPolyRingElem{T}) where {T}
upr = dpr.upoly_ring
@req upr.mpoly_ring === parent(mpre) "The parent does not match"
new{T}(upr(collect(coefficients(mpre)), collect(exponents(mpre))), dpr, false, zeros(Int, length(mpre)))
end

end

### Differential ###
Expand Down Expand Up @@ -159,12 +153,6 @@ mutable struct DifferentialPolyRingElem{T} <: ActionPolyRingElem{T}
new{T}(upre, dpr, false, zeros(Int, length(upre)))
end

function DifferentialPolyRingElem{T}(dpr::DifferentialPolyRing{T}, mpre::MPolyRingElem{T}) where {T}
upr = dpr.upoly_ring
@req upr.mpoly_ring === parent(mpre) "The parent does not match"
new{T}(upr(collect(coefficients(mpre)), collect(exponents(mpre))), dpr, false, zeros(Int, length(mpre)))
end

end

###############################################################################
Expand Down
4 changes: 0 additions & 4 deletions experimental/ActionPolyRing/test/ActionPolyRing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -646,14 +646,10 @@ using Test
g = (u1_010 - 2) * (u1 - u1_100 + 3)
@test dpr(data(f)) == f
@test dpr(data(f)) !== f
@test dpr(data(data(f))) == f
@test dpr(data(data(f))) !== f
@test dpr(f) === f

@test dpr(data(g)) == g
@test dpr(data(g)) !== g
@test dpr(data(data(g))) == g
@test dpr(data(data(g))) !== g
@test dpr(g) === g

@test f == 2*u2_100*u1_100 - u3_111*u1_100 - 2*u2_100*u1 + u3_111*u1 - 6*u2_100 + 3*u3_111
Expand Down
Loading