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

Enhance inference in LieAlgebras, GSets, and MatrixGroups #4208

Merged
merged 11 commits into from
Oct 18, 2024

Conversation

lgoettgens
Copy link
Member

@lgoettgens lgoettgens commented Oct 15, 2024

Most of this was found using JET.

This needs Nemocas/AbstractAlgebra.jl#1864 to be available.

Copy link
Member

@ThomasBreuer ThomasBreuer left a comment

Choose a reason for hiding this comment

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

Nice.
I have marked just a few places where minor improvements are possible.

src/Groups/matrices/MatGrp.jl Outdated Show resolved Hide resolved
src/Groups/matrices/MatGrp.jl Outdated Show resolved Hide resolved
experimental/LieAlgebras/src/AbstractLieAlgebra.jl Outdated Show resolved Hide resolved
experimental/LieAlgebras/src/LinearLieAlgebra.jl Outdated Show resolved Hide resolved
@ThomasBreuer
Copy link
Member

Strange: On my computer, I cannot reproduce the errors reported for test/Groups/matrixgroups.jl in "test (short)".

Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

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

Look sensible to me.


Return the element of `I` with coefficient vector `v`.
"""
function (I::LieAlgebraIdeal{C})(v::Vector{C}) where {C<:FieldElem}
function (I::LieAlgebraIdeal{C})(v::AbstractVector{C}) where {C<:FieldElem}
Copy link
Member

Choose a reason for hiding this comment

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

At first I was concerned that this change might lead to funky behaviour if v does not use 1-based indexing. But then I noticed the call matrix(coefficient_ring(I), 1, length(v), v) below, so I think that will throw a suitable error in that case. Fine by me then.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

Attention: Patch coverage is 89.58333% with 10 lines in your changes missing coverage. Please review.

Project coverage is 84.60%. Comparing base (97785ad) to head (63b14a4).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/Groups/matrices/MatGrp.jl 94.33% 3 Missing ⚠️
experimental/LieAlgebras/src/AbstractLieAlgebra.jl 75.00% 2 Missing ⚠️
experimental/LieAlgebras/src/LieAlgebraIdeal.jl 33.33% 2 Missing ⚠️
experimental/LieAlgebras/src/LinearLieAlgebra.jl 66.66% 2 Missing ⚠️
experimental/LieAlgebras/src/LieSubalgebra.jl 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4208      +/-   ##
==========================================
- Coverage   84.60%   84.60%   -0.01%     
==========================================
  Files         631      631              
  Lines       84939    84946       +7     
==========================================
+ Hits        71864    71865       +1     
- Misses      13075    13081       +6     
Files with missing lines Coverage Δ
experimental/LieAlgebras/src/LieAlgebra.jl 89.26% <100.00%> (-0.04%) ⬇️
experimental/LieAlgebras/src/LieAlgebraModule.jl 90.70% <100.00%> (ø)
experimental/LieAlgebras/src/RootSystem.jl 92.47% <ø> (ø)
experimental/LieAlgebras/src/Types.jl 96.68% <100.00%> (ø)
src/GAP/iso_oscar_gap.jl 98.26% <100.00%> (ø)
src/GAP/wrappers.jl 94.98% <100.00%> (+0.03%) ⬆️
src/Groups/gsets.jl 91.60% <100.00%> (+0.03%) ⬆️
experimental/LieAlgebras/src/LieSubalgebra.jl 58.71% <66.66%> (ø)
experimental/LieAlgebras/src/AbstractLieAlgebra.jl 97.32% <75.00%> (-1.59%) ⬇️
experimental/LieAlgebras/src/LieAlgebraIdeal.jl 43.75% <33.33%> (ø)
... and 2 more

@lgoettgens lgoettgens merged commit f55951b into oscar-system:master Oct 18, 2024
29 checks passed
@lgoettgens lgoettgens deleted the lg/Lie-type-instab branch October 18, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants