@@ -13,13 +13,13 @@ import Manifolds: identity_element
1313
1414# NOTE Sphere{2} is not a lie group so the identity element does not exits.
1515# 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 )
16+ DFG. getPointIdentity (:: typeof ( Sphere ( 2 )) ) = SVector (1.0 , 0.0 , 0.0 )
1717# FIXME REMOVE! this is type piracy and not a good idea, for testing only!!!
18- Manifolds. identity_element (:: Sphere{2, ℝ} ) = SVector (1.0 , 0.0 , 0.0 )
19- Manifolds. identity_element (:: Sphere{2, ℝ} , p:: AbstractVector ) = SVector (1.0 , 0.0 , 0.0 ) # Float64[1,0,0]
18+ Manifolds. identity_element (:: typeof ( Sphere ( 2 )) ) = SVector (1.0 , 0.0 , 0.0 )
19+ Manifolds. identity_element (:: typeof ( Sphere ( 2 )) , p:: AbstractVector ) = SVector (1.0 , 0.0 , 0.0 ) # Float64[1,0,0]
2020
21- Base. convert (:: Type{<:Tuple} , M:: Sphere{2, ℝ} ) = (:Euclid , :Euclid )
22- Base. convert (:: Type{<:Tuple} , :: IIF.InstanceType{Sphere{2, ℝ} } ) = (:Euclid , :Euclid )
21+ Base. convert (:: Type{<:Tuple} , M:: typeof ( Sphere ( 2 )) ) = (:Euclid , :Euclid )
22+ Base. convert (:: Type{<:Tuple} , :: IIF.InstanceType{typeof( Sphere(2)) } ) = (:Euclid , :Euclid )
2323
2424@defVariable Sphere2 Sphere (2 ) SVector (1.0 , 0.0 , 0.0 )
2525M = getManifold (Sphere2)
0 commit comments