Skip to content

Commit

Permalink
minor adaptation of (inverse) retractions
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszbaran committed Oct 16, 2023
1 parent 17b5a4a commit d6091f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
3 changes: 0 additions & 3 deletions src/Manifolds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ import ManifoldsBase:
_access_nested,
_get_basis,
_injectivity_radius,
_inverse_retract,
_inverse_retract!,
_read,
_retract,
_retract!,
_write,
active_traits,
Expand Down Expand Up @@ -100,7 +98,6 @@ import ManifoldsBase:
is_vector,
inverse_retract,
inverse_retract!,
_inverse_retract,
_inverse_retract!,
inverse_retract_cayley!,
inverse_retract_embedded!,
Expand Down
8 changes: 0 additions & 8 deletions src/manifolds/VectorBundle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,6 @@ function inner(B::FiberBundle, p, X, Y)
return inner(B.manifold, px, VXM, VYM) + inner(F, Vx, VXF, VYF)
end

function _inverse_retract(M::FiberBundle, p, q, ::FiberBundleInverseProductRetraction)
return inverse_retract_product(M, p, q)
end

function _inverse_retract!(M::FiberBundle, X, p, q, ::FiberBundleInverseProductRetraction)
return inverse_retract_product!(M, X, p, q)
end
Expand Down Expand Up @@ -243,10 +239,6 @@ function project!(B::VectorBundle, Y, p, X)
return Y
end

function _retract(M::VectorBundle, p, X, t::Number, ::FiberBundleProductRetraction)
return retract_product(M, p, X, t)
end

function _retract!(M::VectorBundle, q, p, X, t::Number, ::FiberBundleProductRetraction)
return retract_product!(M, q, p, X, t)
end
Expand Down
13 changes: 6 additions & 7 deletions test/manifolds/product_manifold.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,15 @@ using RecursiveArrayTools: ArrayPartition
TEST_STATIC_SIZED && push!(types, MVector{5,Float64})

retraction_methods = [
Manifolds.ProductRetraction(
ManifoldsBase.ExponentialRetraction(),
ManifoldsBase.ExponentialRetraction(),
),
ProductRetraction(ExponentialRetraction(), ExponentialRetraction()),
ExponentialRetraction(),
]
inverse_retraction_methods = [
Manifolds.InverseProductRetraction(
ManifoldsBase.LogarithmicInverseRetraction(),
ManifoldsBase.LogarithmicInverseRetraction(),
InverseProductRetraction(
LogarithmicInverseRetraction(),
LogarithmicInverseRetraction(),
),
LogarithmicInverseRetraction(),
]

@testset "get_component, set_component!, getindex and setindex!" begin
Expand Down

0 comments on commit d6091f8

Please sign in to comment.