Skip to content

Commit

Permalink
Add function to print operators
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Oct 25, 2023
1 parent 67c891f commit b5f30aa
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions experimental/BasisLieHighestWeight/src/UserFunctions.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
@doc """
```jldoctest
julia> BasisLieHighestWeight.basis_lie_highest_weight_operators(:B, 2)
4-element Vector{Tuple{Int64, Vector{QQFieldElem}}}:
(1, [1, 0])
(2, [0, 1])
(3, [1, 1])
(4, [1, 2])
```
"""
function basis_lie_highest_weight_operators(type::Symbol, rank::Int)
lie_algebra, chevalley_basis = lie_algebra_with_basis(type, rank)
operators = chevalley_basis[1] # TODO: change to [2]
weights_w = weights_for_operators(
lie_algebra.lie_algebra_gap, chevalley_basis[3], operators
)
weights_alpha = [
w_to_alpha(lie_algebra, convert(Vector{QQFieldElem}, weight_w)) for
weight_w in weights_w
]
return collect(enumerate(weights_alpha))
end

@doc """
basis_lie_highest_weight(
type::Symbol,
Expand Down

0 comments on commit b5f30aa

Please sign in to comment.