Skip to content

Commit

Permalink
debug hat/vee.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Nov 28, 2024
1 parent bf0b181 commit e6b17de
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/groups/product_group.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ function hat!(
@assert length(c) == sum(dims)
dim_ranges = ManifoldsBase._get_dim_ranges(dims)
Prc = map(dr -> (@inbounds view(c, dr)), dim_ranges)
ts = ManifoldsBase.ziptuples(PM.manifolds, submanifold_components(PM, X), Prc)
PrL = LieGroup.(PrM.manifolds, PrG.op.operations)
ts = ManifoldsBase.ziptuples(PrL, submanifold_components(PrM, X), Prc)
map(ts) do t
return hat!(t...)
end
Expand Down Expand Up @@ -283,11 +284,14 @@ function vee!(
PrG::LieGroup{𝔽,Op,M}, c, X
) where {𝔽,Op<:ProductGroupOperation,M<:ManifoldsBase.ProductManifold}
PrM = PrG.manifold
map(
vee!,
LieGroup.(PrM.manifolds, PrG.op.operations),
submanifold_components(PrM, c),
submanifold_components(PrM, X),
)
return X
dims = map(manifold_dimension, PrM.manifolds)
@assert length(c) == sum(dims)
dim_ranges = ManifoldsBase._get_dim_ranges(dims)
Prc = map(dr -> (@inbounds view(c, dr)), dim_ranges)
PrL = LieGroup.(PrM.manifolds, PrG.op.operations)
ts = ManifoldsBase.ziptuples(PrL, Prc, submanifold_components(PrM, X))
map(ts) do t
return vee!(t...)
end
return c
end

0 comments on commit e6b17de

Please sign in to comment.