From 0a70f9d89c85a9f2e551fbbdad4b0b83f7553f12 Mon Sep 17 00:00:00 2001 From: Mateusz Baran Date: Thu, 15 Aug 2024 17:43:17 +0200 Subject: [PATCH] fix stuff, improve coverage --- test/groups/special_euclidean.jl | 8 ++++++++ tutorials/groups.qmd | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/test/groups/special_euclidean.jl b/test/groups/special_euclidean.jl index 0b7a59e5b..fbc6ac0e7 100644 --- a/test/groups/special_euclidean.jl +++ b/test/groups/special_euclidean.jl @@ -398,6 +398,14 @@ using Manifolds: @test isapprox(G, q, q_ref) Y = log_inv(G, p, q) @test isapprox(G, p, X, Y) + + q2 = similar(q) + exp_inv!(G, q2, p, X) + @test isapprox(G, q, q2) + + Y2 = similar(Y) + log_inv!(G, Y2, p, q) + @test isapprox(G, p, Y, Y2) end @testset "performance of selected operations" begin diff --git a/tutorials/groups.qmd b/tutorials/groups.qmd index ae59b7666..c311c4f77 100644 --- a/tutorials/groups.qmd +++ b/tutorials/groups.qmd @@ -172,7 +172,7 @@ for i in 1:5 end # drop back to a algebra, then coordinate -ArrayPartition([1.0, 0.0, -1.0], xRi) = log(G, p0, aRi) +aXi = log(G, p0, aRi) aθi = get_coordinates(G, p0, aXi, B) # should wrap around to 3rd quadrant of xy-plane