Skip to content

Commit

Permalink
add check and note in Stiefel transport; add Markus as coauthor; bump…
Browse files Browse the repository at this point in the history
… version
  • Loading branch information
Jutho committed Sep 7, 2020
1 parent 7f5d989 commit cd4c7f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TensorKitManifolds"
uuid = "11fa318c-39cb-4a83-b1ed-cdc7ba1e3684"
authors = ["Jutho Haegeman"]
version = "0.4.0"
authors = ["Jutho Haegeman <[email protected]>", "Markus Hauru <[email protected]>"]
version = "0.5.0"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
7 changes: 5 additions & 2 deletions src/stiefel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,12 @@ end
# not parallel transport for either metric as the corresponding connection has torsion
# can be computed efficiently: O(np^2) + O(p^3)
function transport_exp!::StiefelTangent, W::AbstractTensorMap,
Δ::StiefelTangent, α::Real, W′)
Δ::StiefelTangent, α::Real, W′::AbstractTensorMap)
W == checkbase(Δ,Θ) || throw(ArgumentError("not a valid tangent vector at base point"))
W′, Q, Q′, R′ = stiefelexp(W, Δ.A, Δ.Z, α)
# TODO: stiefelexp call does not depend on Θ
# cache result or find some other way not to recompute this information
_W′, Q, Q′, R′ = stiefelexp(W, Δ.A, Δ.Z, α)
W′ _W′ || throw(ArgumentError("not a valid tangetn vector at end point"))
A = Θ.A
Z = Θ.Z
QZ = Q'*Θ.Z
Expand Down

2 comments on commit cd4c7f2

@Jutho
Copy link
Owner Author

@Jutho Jutho commented on cd4c7f2 Sep 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/20987

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.0 -m "<description of version>" cd4c7f2e35492607e131056a7d12e9c2e8fdd418
git push origin v0.5.0

Please sign in to comment.