Skip to content

Commit 7b5de31

Browse files
committed
Change to DefaultOrthogonalBasis and add as arg
1 parent f002086 commit 7b5de31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/DFGVariable.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ Related
159159
160160
[`getCoordinates`](@ref)
161161
"""
162-
function getPoint(::Type{T}, v::AbstractVector) where {T <: InferenceVariable}
162+
function getPoint(::Type{T}, v::AbstractVector, basis=ManifoldsBase.DefaultOrthogonalBasis()) where {T <: InferenceVariable}
163163
M = getManifold(T)
164164
p0 = getPointIdentity(T)
165-
X = ManifoldsBase.get_vector(M, p0, v, ManifoldsBase.DefaultOrthonormalBasis())
165+
X = ManifoldsBase.get_vector(M, p0, v, basis)
166166
ManifoldsBase.exp(M, p0, X)
167167
end
168168

@@ -179,11 +179,11 @@ Related
179179
180180
[`getPoint`](@ref)
181181
"""
182-
function getCoordinates(::Type{T}, p) where {T <: InferenceVariable}
182+
function getCoordinates(::Type{T}, p, basis=ManifoldsBase.DefaultOrthogonalBasis()) where {T <: InferenceVariable}
183183
M = getManifold(T)
184184
p0 = getPointIdentity(T)
185185
X = ManifoldsBase.log(M, p0, p)
186-
ManifoldsBase.get_coordinates(M, p0, X, ManifoldsBase.DefaultOrthonormalBasis())
186+
ManifoldsBase.get_coordinates(M, p0, X, basis)
187187
end
188188

189189

0 commit comments

Comments
 (0)