File tree Expand file tree Collapse file tree 2 files changed +40
-2
lines changed
src/on_varieties/lie-symmetries Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Original file line number Diff line number Diff line change 1+ abstract type AbstractLieAlgebra end
2+
3+ struct LieAlgebra <: AbstractLieAlgebra
4+
5+ end
6+
7+ struct SumLieAlgebra <: AbstractLieAlgebra
8+ algs:: Vector{AbstractLieAlgebra}
9+ end
10+
11+
12+ abstract type AbstractLieAlgebraElem end
13+
14+ struct LieAlgebraElem <: AbstractLieAlgebraElem
15+ alg:: LieAlgebra
16+ coeffs:: Vector{ComplexF64}
17+ end
18+
19+ struct SumLieAlgebraElem <: AbstractLieAlgebraElem
20+ alg:: SumLieAlgebra
21+ elems:: Vector{AbstractLieAlgebraElem}
22+ end
23+
24+
25+ abstract type AbstractLieAlgebraAction end
26+
27+ struct LieAlgebraAction <: AbstractLieAlgebraAction
28+ alg:: LieAlgebra
29+ vars:: Vector{Vector{Variable}}
30+ end
31+
32+ struct SumLieAlgebraAction <: AbstractLieAlgebraAction
33+ alg:: SumLieAlgebra
34+ end
35+
36+ struct ScalingLieAction <: AbstractLieAlgebraAction
37+
38+ end
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export LieAlgebra,
3131 irreducible_components,
3232 PolynomialVectorSpace,
3333 decompose,
34- ⊞
34+ ⊞ , ∩
3535
3636struct WeightStructure
3737 weights:: Vector{Vector{Int}}
@@ -383,7 +383,7 @@ algebra(π::IrreducibleLieAlgebraRepresentation) = π.alg
383383space_basis (π:: IrreducibleLieAlgebraRepresentation ) = basis (π. hw_module)
384384highest_weight (π:: IrreducibleLieAlgebraRepresentation ) = highest_weight (π. hw_module)
385385highest_weight_vector (π:: IrreducibleLieAlgebraRepresentation ) = highest_weight_vector (π. hw_module)
386- dim (π:: IrreducibleLieAlgebraRepresentation ) = 2 * highest_weight (π)[ 1 ] + 1 # TODO : works only for so(3)
386+ dim (π:: IrreducibleLieAlgebraRepresentation ) = prod ([ 2 * j + 1 for j in highest_weight (π)]) # TODO : works only for so(3)
387387
388388function to_expressions (π:: IrreducibleLieAlgebraRepresentation ; tol:: Float64 = 1e-5 )
389389 exprs = Expression[]
You can’t perform that action at this time.
0 commit comments