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

Remove obsolete getindex methods for accessing generators #3260

Merged
merged 4 commits into from
Jan 30, 2024

Conversation

fingolfin
Copy link
Member

AA defines this generically, with one exception R[0] is not defined, yet some code uses it to represent zero(R). Such code should be changed to use R(0) or zero(R).

I fixed two of these, but there might be more, we'll see.

@@ -20,7 +20,7 @@ mutable struct PBWAlgElem{T, S} <: NCRingElem
sdata::Singular.spluralg{S}
end

mutable struct PBWAlgIdeal{D, T, S}
mutable struct PBWAlgIdeal{D, T, S} <: Ideal{PBWAlgIdeal{T, S}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be recursive? I expected something along the lines of Ideal{PBWAlgebra{...}}

Copy link

codecov bot commented Jan 30, 2024

Codecov Report

Merging #3260 (4a90e9a) into master (907fb36) will decrease coverage by 0.01%.
Report is 4 commits behind head on master.
The diff coverage is 83.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3260      +/-   ##
==========================================
- Coverage   81.65%   81.65%   -0.01%     
==========================================
  Files         546      546              
  Lines       73102    73148      +46     
==========================================
+ Hits        59692    59727      +35     
- Misses      13410    13421      +11     
Files Coverage Δ
experimental/GModule/Brueckner.jl 87.96% <ø> (+0.36%) ⬆️
src/Groups/GAPGroups.jl 92.76% <ø> (-0.02%) ⬇️
src/Groups/matrices/matrix_manipulation.jl 86.36% <ø> (-0.13%) ⬇️
src/Modules/ModulesGraded.jl 81.64% <100.00%> (ø)
src/Modules/UngradedModules/FreeModElem.jl 96.73% <ø> (-0.11%) ⬇️
src/Modules/UngradedModules/SubquoModuleElem.jl 83.45% <ø> (-0.19%) ⬇️
src/Modules/UngradedModules/Tensor.jl 93.58% <100.00%> (ø)
src/Rings/FreeAssAlgIdeal.jl 71.64% <ø> (ø)
src/Rings/Laurent.jl 88.07% <ø> (ø)
src/Rings/MPolyQuo.jl 93.00% <ø> (+0.17%) ⬆️
... and 8 more

... and 37 files with indirect coverage changes

src/Rings/PBWAlgebra.jl Outdated Show resolved Hide resolved
Co-authored-by: Max Horn <max@quendi.de>
@fingolfin fingolfin merged commit 2e151d3 into oscar-system:master Jan 30, 2024
20 checks passed
@fingolfin fingolfin deleted the mh/getindex branch January 30, 2024 12:31
ooinaruhugh pushed a commit to ooinaruhugh/Oscar.jl that referenced this pull request Feb 15, 2024
…stem#3260)

* Avoid R[0]
* Add some missing supertypes
* Remove obsolete getindex methods for accessing generators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants