Skip to content

Commit cd4c7f2

Browse files
committed
add check and note in Stiefel transport; add Markus as coauthor; bump version
1 parent 7f5d989 commit cd4c7f2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TensorKitManifolds"
22
uuid = "11fa318c-39cb-4a83-b1ed-cdc7ba1e3684"
3-
authors = ["Jutho Haegeman"]
4-
version = "0.4.0"
3+
authors = ["Jutho Haegeman <jutho.haegeman@ugent.be>", "Markus Hauru <markus@mhauru.org>"]
4+
version = "0.5.0"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/stiefel.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,12 @@ end
217217
# not parallel transport for either metric as the corresponding connection has torsion
218218
# can be computed efficiently: O(np^2) + O(p^3)
219219
function transport_exp!(Θ::StiefelTangent, W::AbstractTensorMap,
220-
Δ::StiefelTangent, α::Real, W′)
220+
Δ::StiefelTangent, α::Real, W′::AbstractTensorMap)
221221
W == checkbase(Δ,Θ) || throw(ArgumentError("not a valid tangent vector at base point"))
222-
W′, Q, Q′, R′ = stiefelexp(W, Δ.A, Δ.Z, α)
222+
# TODO: stiefelexp call does not depend on Θ
223+
# cache result or find some other way not to recompute this information
224+
_W′, Q, Q′, R′ = stiefelexp(W, Δ.A, Δ.Z, α)
225+
W′ _W′ || throw(ArgumentError("not a valid tangetn vector at end point"))
223226
A = Θ.A
224227
Z = Θ.Z
225228
QZ = Q'*Θ.Z

0 commit comments

Comments
 (0)