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
@assert ($manifold isa AbstractManifold) "@defVariable of "*string($structname)*" requires that the "*string($manifold)*" be a subtype of `ManifoldsBase.AbstractManifold`"
20
-
21
-
# manifold must be is a <:Manifold
22
-
Base.convert(::Type{<:AbstractManifold}, ::Union{<:T, Type{<:T}}) where {T <:$structname} =$manifold
23
-
24
-
getManifold(::Type{M}) where {M <:$structname} =$manifold
25
-
getManifold(::M) where {M <:$structname} =getManifold(M)
26
-
27
-
getDimension(::Type{M}) where {M <:$structname} =manifold_dimension(getManifold(M))
28
-
getDimension(::M) where {M <:$structname} =manifold_dimension(getManifold(M))
29
-
#FIXME legacy API to be deprecated
30
-
# getManifolds(::Type{M}) where {M <: $structname} = convert(Tuple, $manifold)
31
-
# getManifolds(::M) where {M <: $structname} = convert(Tuple, $manifold)
32
-
end)
33
-
end
34
-
35
-
36
-
##
37
-
38
-
39
-
ex =macroexpand(Main, :(@defVariable(TestVariableType1, Euclidean(1))) )
0 commit comments