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

LieAlgebras: Follow-up to #2753 #2818

Merged
merged 4 commits into from
Sep 19, 2023

Conversation

lgoettgens
Copy link
Member

This includes some small adaptions and fixes that I missed in #2753.

@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #2818 (4158bf4) into master (d3a975a) will decrease coverage by 0.19%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2818      +/-   ##
==========================================
- Coverage   80.81%   80.63%   -0.19%     
==========================================
  Files         456      456              
  Lines       64539    64672     +133     
==========================================
- Hits        52159    52149      -10     
- Misses      12380    12523     +143     
Files Changed Coverage
experimental/LieAlgebras/src/LieAlgebras.jl ø
...mental/LieAlgebras/test/AbstractLieAlgebra-test.jl ø
...rimental/LieAlgebras/test/LinearLieAlgebra-test.jl ø
experimental/LieAlgebras/src/AbstractLieAlgebra.jl 100.00%
...xperimental/LieAlgebras/src/LieAlgebraModuleHom.jl 100.00%
experimental/LieAlgebras/src/LinearLieAlgebra.jl 100.00%
experimental/LieAlgebras/test/LieAlgebra-test.jl 100.00%
...rimental/LieAlgebras/test/LieAlgebraModule-test.jl 100.00%

@@ -140,21 +140,17 @@ end
###############################################################################

@doc raw"""
(L::LinearLieAlgebra{C})(m::MatElem{C}) -> LieAlgebraElem{C}
coerce_to_lie_algebra_elem(L::LinearLieAlgebra{C}, x::MatElem{C}) -> LinearLieAlgebraElem{C}
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, so L(m) is changed to coerce_to_lie_algebra_elem(L,m) -- why?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because L(m) is already in use for m being a coefficient vector (of size 1 x dim(L)). For dimensions 1 and 0, it is ambiguous which of the two you mean

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are coefficient vectors matrices and not vectors?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's because I started with AbstractAlgebra's Generic.FreeModuleElem and adapted it to my needs.

I should probably change it to SRow{C} and change module action matrices and home matrices to sparse matrices as well. But as that is a larger change, I would like to split that into a new PR.
coerce_to_lie_algebra_elem(L, m) will then be removed again in favor of L(m).

@fingolfin fingolfin merged commit 3768cf3 into oscar-system:master Sep 19, 2023
13 of 15 checks passed
@lgoettgens lgoettgens deleted the lg/lie-hom-constructions branch September 19, 2023 20:53
fieker pushed a commit that referenced this pull request Sep 29, 2023
* Cleanup after thofma/Hecke.jl#1196

* Fix for 0-th powers

* Fix 0-dim Lie algebras

* Add tests for 0-dim modules
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