You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/services/DFGVariable.jl
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ Interface function to return the `variableType` dimension of an InferenceVariabl
70
70
function getDimension end
71
71
"""
72
72
$SIGNATURES
73
-
Interface function to return the `<:ManifoldsBase.Manifold` object of `variableType<:InferenceVariable`, extend this function for all `Types<:InferenceVariable`.
73
+
Interface function to return the `<:ManifoldsBase.AbstractManifold` object of `variableType<:InferenceVariable`, extend this function for all `Types<:InferenceVariable`.
@assert ($manifold isaManifold) "@defVariable of "*string($structname)*" requires that the "*string($manifold)*" be a subtype of `ManifoldsBase.Manifold`"
104
+
@assert ($manifold isaAbstractManifold) "@defVariable of "*string($structname)*" requires that the "*string($manifold)*" be a subtype of `ManifoldsBase.AbstractManifold`"
105
105
106
106
# user manifold must be a <:Manifold
107
-
Base.convert(::Type{<:Manifold}, ::Union{<:T, Type{<:T}}) where {T <:$structname} =$manifold
107
+
Base.convert(::Type{<:AbstractManifold}, ::Union{<:T, Type{<:T}}) where {T <:$structname} =$manifold
108
108
109
109
getManifold(::Type{M}) where {M <:$structname} =$manifold
110
110
getManifold(::M) where {M <:$structname} =getManifold(M)
@assert ($manifold isaManifold) "@defVariable of "*string($structname)*" requires that the "*string($manifold)*" be a subtype of `ManifoldsBase.Manifold`"
19
+
@assert ($manifold isaAbstractManifold) "@defVariable of "*string($structname)*" requires that the "*string($manifold)*" be a subtype of `ManifoldsBase.AbstractManifold`"
20
20
21
21
# manifold must be is a <:Manifold
22
-
Base.convert(::Type{<:Manifold}, ::Union{<:T, Type{<:T}}) where {T <:$structname} =$manifold
22
+
Base.convert(::Type{<:AbstractManifold}, ::Union{<:T, Type{<:T}}) where {T <:$structname} =$manifold
23
23
24
24
getManifold(::Type{M}) where {M <:$structname} =$manifold
25
25
getManifold(::M) where {M <:$structname} =getManifold(M)
0 commit comments