Skip to content

Commit

Permalink
Fix the test (final one).
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Dec 15, 2023
1 parent a0f1a98 commit 8f11a9a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/default_manifold.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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) ==
Expand Down

0 comments on commit 8f11a9a

Please sign in to comment.