From 189424b28a8efc17d779bb80a6e10fedfc4640e0 Mon Sep 17 00:00:00 2001 From: Olivier Verdier Date: Fri, 26 Jul 2024 16:34:53 +0200 Subject: [PATCH] Test: inv_diff! --- ext/ManifoldsTestExt/tests_group.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ext/ManifoldsTestExt/tests_group.jl b/ext/ManifoldsTestExt/tests_group.jl index d1507a5cc..df68811c3 100644 --- a/ext/ManifoldsTestExt/tests_group.jl +++ b/ext/ManifoldsTestExt/tests_group.jl @@ -385,6 +385,12 @@ function test_group( Test.@testset "test_inv_diff" for side in [LeftSide(), RightSide()] test_inv_diff_fn(G, g_pts[1], X_pts[1], side) end # COV_EXCL_LINE + if test_mutating + Y = inv_diff(G, e, Xe_pts[1]) + Z = allocate(Y) + inv_diff!(G, Z, e, Xe_pts[1]) + Test.@test isapprox(TangentSpace(G, e), Y, Z) + end end test_adjoint_inv_diff && Test.@testset "Differential of inverse" begin # COV_EXCL_LINE Test.@test isapprox(adjoint_inv_diff(G, e, Xe_pts[1]), -Xe_pts[1]; atol=atol)