Skip to content

Commit

Permalink
Make _iso_oscar_gap(::AbstractLieAlgeba) way more efficient
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Oct 22, 2024
1 parent 88b734c commit 241ac1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions experimental/LieAlgebras/src/iso_oscar_gap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ function _iso_oscar_gap(LO::AbstractLieAlgebra; set_attributes::Bool=true)
[
[
begin
pairs = filter(pair -> !iszero(last(pair)), collect(enumerate(_matrix(xi * xj))))
(map(first, pairs), GAP.Obj[coeffs_iso(c) for c in map(last, pairs)])
end for xj in basis(LO)
] for xi in basis(LO)
pairs = collect(LO.struct_consts[i, j])
(first.(pairs), GAP.Obj[coeffs_iso(c) for c in last.(pairs)])
end for j in 1:dim(LO)
] for i in 1:dim(LO)
]
-1
coeffs_iso(zero(coefficient_ring(LO)))
Expand Down

0 comments on commit 241ac1f

Please sign in to comment.