Skip to content

Commit

Permalink
fix lie_bracket on new groups
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszbaran committed Nov 28, 2024
1 parent e6b17de commit 6fd33ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/groups/power_group.jl
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function inv!(
end

function lie_bracket!(
PoA::LieAlgebra{𝔽,<:LieGroup{𝔽,Op,M}}, Z, X, Y
PoA::LieAlgebra{𝔽,Op,<:LieGroup{𝔽,Op,M}}, Z, X, Y
) where {𝔽,Op<:PowerGroupOperation,M<:ManifoldsBase.AbstractPowerManifold}
PM = PoA.manifold.manifold
rep_size = representation_size(PM)
Expand All @@ -270,6 +270,7 @@ function lie_bracket!(
ManifoldsBase._read(PM, rep_size, Y, i),
)
end
return Z
end

function ManifoldsBase.log!(
Expand Down
4 changes: 2 additions & 2 deletions src/groups/product_group.jl
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,12 @@ function inv!(
end

function lie_bracket!(
PrA::LieAlgebra{𝔽,<:LieGroup{𝔽,Op,M}}, Z, X, Y
PrA::LieAlgebra{𝔽,Op,<:LieGroup{𝔽,Op,M}}, Z, X, Y
) where {𝔽,Op<:ProductGroupOperation,M<:ManifoldsBase.ProductManifold}
PrM = PrA.manifold.manifold
map(
lie_bracket!,
LieAlgebra.(LieGroup.(PrM.manifolds, PrA.op.operations)),
LieAlgebra.(LieGroup.(PrM.manifolds, PrA.manifold.op.operations)),
submanifold_components(PrM, Z),
submanifold_components(PrM, X),
submanifold_components(PrM, Y),
Expand Down

0 comments on commit 6fd33ee

Please sign in to comment.