Skip to content

Commit 6f3e431

Browse files
committed
sphere support comment
1 parent c58ae70 commit 6f3e431

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/testSphereMani.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ import Manifolds: identity_element
1111
@testset "Test Sphere(2) prior and relative" begin
1212
##
1313

14+
# NOTE Sphere{2} is not a lie group so the identity element does not exits.
15+
# this is for testing only and will be removed once upgraded to support any Riemannian Manifold.
16+
DFG.getPointIdentity(::Sphere{2, ℝ}) = SVector(1.0, 0.0, 0.0)
1417
#FIXME REMOVE! this is type piracy and not a good idea, for testing only!!!
1518
Manifolds.identity_element(::Sphere{2, ℝ}) = SVector(1.0, 0.0, 0.0)
1619
Manifolds.identity_element(::Sphere{2, ℝ}, p::AbstractVector) = SVector(1.0, 0.0, 0.0) # Float64[1,0,0]
17-
DFG.getPointIdentity(::Sphere{2, ℝ}) = SVector(1.0, 0.0, 0.0)
1820

1921
Base.convert(::Type{<:Tuple}, M::Sphere{2, ℝ}) = (:Euclid, :Euclid)
2022
Base.convert(::Type{<:Tuple}, ::IIF.InstanceType{Sphere{2, ℝ}}) = (:Euclid, :Euclid)

0 commit comments

Comments
 (0)