@@ -74,14 +74,14 @@ Interface function to return the `<:ManifoldsBase.Manifold` object of `variableT
74
74
"""
75
75
function getManifold end
76
76
77
- """
78
- $SIGNATURES
79
- Interface function to return the `variableType` manifolds of an InferenceVariable, extend this function for all Types<:InferenceVariable.
80
- """
81
- function getManifolds end
77
+ # """
78
+ # $SIGNATURES
79
+ # Interface function to return the `variableType` manifolds of an InferenceVariable, extend this function for all Types<:InferenceVariable.
80
+ # """
81
+ # function getManifolds end
82
82
83
- getManifolds (:: Type{<:T} ) where {T <: ManifoldsBase.Manifold } = convert (Tuple, T)
84
- getManifolds (:: T ) where {T <: ManifoldsBase.Manifold } = getManifolds (T)
83
+ # getManifolds(::Type{<:T}) where {T <: ManifoldsBase.Manifold} = convert(Tuple, T)
84
+ # getManifolds(::T) where {T <: ManifoldsBase.Manifold} = getManifolds(T)
85
85
86
86
getDimension (t_:: T ) where {T <: ManifoldsBase.Manifold } = manifold_dimension (t_)
87
87
@@ -106,15 +106,15 @@ macro defVariable(structname, manifold)
106
106
# user manifold must be a <:Manifold
107
107
Base. convert (:: Type{<:Manifold} , :: Union{<:T, Type{<:T}} ) where {T <: $structname } = $ manifold
108
108
109
- DFG . getManifold (:: Type{M} ) where {M <: $structname } = $ manifold
110
- DFG . getManifold (:: M ) where {M <: $structname } = getManifold (M)
109
+ getManifold (:: Type{M} ) where {M <: $structname } = $ manifold
110
+ getManifold (:: M ) where {M <: $structname } = getManifold (M)
111
111
112
112
DFG. getDimension (:: Type{M} ) where {M <: $structname } = manifold_dimension (getManifold (M))
113
113
DFG. getDimension (:: M ) where {M <: $structname } = manifold_dimension (getManifold (M))
114
114
115
- # # FIXME legacy API to be deprecated
116
- DFG. getManifolds (:: Type{M} ) where {M <: $structname } = convert (Tuple, $ manifold)
117
- DFG. getManifolds (:: M ) where {M <: $structname } = convert (Tuple, $ manifold)
115
+ # # # FIXME legacy API to be deprecated
116
+ # DFG.getManifolds(::Type{M}) where {M <: $structname} = convert(Tuple, $manifold)
117
+ # DFG.getManifolds(::M) where {M <: $structname} = convert(Tuple, $manifold)
118
118
end )
119
119
end
120
120
0 commit comments