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

Version 0.5.0-DEV #222

Merged
merged 1 commit into from
Oct 31, 2024
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
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
oscar-version:
- 'stable'
- 'devel'
- '1.0'
- '1.1'
os:
- ubuntu-latest
#include:
Expand All @@ -60,12 +60,12 @@ jobs:
using Pkg
Pkg.develop("Oscar")
Pkg.pin("Oscar")'
- name: "Install OSCAR 1.0"
if: ${{ matrix.oscar-version == '1.0' }}
- name: "Install OSCAR 1.1"
if: ${{ matrix.oscar-version == '1.1' }}
run: |
julia --project=@. --color=yes --code-coverage -e '
using Pkg
Pkg.add(name="Oscar", version="1.0")
Pkg.add(name="Oscar", version="1.1")
Pkg.pin("Oscar")'
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GenericCharacterTables"
uuid = "fdcc7804-6c20-4e83-8118-baad6b7d05b7"
authors = ["Andreas Leim <leim@rhrk.uni-kl.de>", "Martin Wagner <marwagne@rhrk.uni-kl.de>", "Max Horn <mhorn@rptu.de>"]
version = "0.4.2"
version = "0.5.0-DEV"

[deps]
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Expand All @@ -11,5 +11,5 @@ Oscar = "f1435218-dba5-11e9-1e4d-f1a5fab5fc13"
[compat]
Compat = "4.11"
JSON = "^0.20, ^0.21"
Oscar = "0.14, 1.0"
Oscar = "1.1"
julia = "1.6"
30 changes: 1 addition & 29 deletions src/GenericCyclotomics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,14 @@ if pkgversion(Oscar.AbstractAlgebra) >= v"0.42.0"
const ZZUPoly = Generic.UnivPoly{ZZRingElem}
const UPoly = Generic.UnivPoly{QQFieldElem}
const UPolyRing = Generic.UniversalPolyRing{QQFieldElem}
const univ_poly_change_base_ring = change_base_ring
else
const ZZUPoly = Generic.UnivPoly{ZZRingElem, Generic.MPoly{ZZRingElem}}
const UPoly = Generic.UnivPoly{QQFieldElem, Generic.MPoly{QQFieldElem}}
const UPolyRing = Generic.UniversalPolyRing{QQFieldElem, Generic.MPoly{QQFieldElem}}

function Oscar.AbstractAlgebra.evaluate(f::FracElem{T}, vars::Vector{Int}, vals::Vector{U}) where {T <: RingElement, U <: RingElement}
return evaluate(numerator(f), vars, vals)//evaluate(denominator(f), vars, vals)
end

function Oscar.AbstractAlgebra.check_parent(a, b, throw::Bool = true)
flag = parent(a) === parent(b)
flag || !throw || error("parents do not match")
return flag
end

# for compat with Oscar 1.0: workaround for broken change_base_ring (this
# was fixed in a subsequent AA release)
function univ_poly_change_base_ring(R, f; cached::Bool=true)
Rx = parent(f)
P = Generic.MPolyRing{elem_type(R)}(R, symbols(Rx), internal_ordering(Rx), cached)
S = universal_polynomial_ring(R; internal_ordering=internal_ordering(Rx), cached)
S.S = deepcopy(symbols(Rx))
S.mpoly_ring = P
return change_base_ring(R, f, parent=S)
end
end
const UPolyFrac = Generic.FracFieldElem{UPoly}
const UPolyFracRing = Generic.FracField{UPoly}

if isdefined(Oscar,:is_terse) # for compat with Oscar 1.0
import Oscar: is_terse
else
is_terse(io::IO) = get(io, :supercompact, false)::Bool
end

@doc raw"""
kempner_with_data(m::Int64)

Expand Down Expand Up @@ -485,7 +457,7 @@ function (R::GenericCycloRing)(f::Dict{UPolyFrac, UPoly}; simplify::Bool=true)
fp=Dict{UPolyFrac, UPoly}()
for (c,g_2,r,a) in L
# normalize the polynomial part of the exponent
ap=normal_form(univ_poly_change_base_ring(ZZ,d*a), d)
ap=normal_form(change_base_ring(ZZ,d*a), d)

# normalize the constant part
t=constant_coefficient(ap)
Expand Down
1 change: 1 addition & 0 deletions src/Imports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import Oscar:
is_domain_type,
isequal,
is_exact_type,
is_terse,
is_unit,
mul!,
norm,
Expand Down
Loading