From 8f11a9a8d2c1c5708198a8abc57380914744991e Mon Sep 17 00:00:00 2001 From: Ronny Bergmann Date: Fri, 15 Dec 2023 17:34:47 +0100 Subject: [PATCH] Fix the test (final one). --- test/default_manifold.jl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/default_manifold.jl b/test/default_manifold.jl index b10da309..b0d74941 100644 --- a/test/default_manifold.jl +++ b/test/default_manifold.jl @@ -888,11 +888,15 @@ Base.size(x::MatrixVectorTransport) = (size(x.m, 2),) @test isapprox(hat(MC, p, [1, 3, 5, 2, 4, 6]), [1 + 2im, 3 + 4im, 5 + 6im]) end + ManifoldsBase.default_approximation_method( + ::ManifoldsBase.DefaultManifold, + ::typeof(exp), + ) = GradientDescentEstimation() @testset "Estimation Method defaults" begin M = ManifoldsBase.DefaultManifold(3) - # Point type fallback - @test default_approximation_method(M, retract, Float64) == - default_retraction_method(M) + # Point generic type fallback + @test default_approximation_method(M, exp, Float64) == + default_approximation_method(M, exp) # Retraction @test default_approximation_method(M, retract) == default_retraction_method(M) @test default_approximation_method(M, retract, DefaultPoint) ==