Skip to content

Ambiguous type inference for optimization over a PowerManifold #153

Answered by kellertuer
yuwenchen95 asked this question in Q&A
Discussion options

You must be logged in to vote

Addon number 2, you could do the following

Define (after importing both)

ManifoldsBase.default_inverse_retraction_method(M::Stiefel) = PolarInverseRetraction()
ManifoldsBase.default_inverse_retraction_method(M::PowerManifold) = ManifoldsBase.default_inverse_retraction_method(M.manifold)

then

distance(M, x0, x0, ManifoldsBase.default_inverse_retraction_method(M))

does work as a rough estimate (which should be enough) and that you could use in the DebugEntryChange that I linked above.

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@kellertuer
Comment options

@kellertuer
Comment options

@yuwenchen95
Comment options

@kellertuer
Comment options

@kellertuer
Comment options

Answer selected by yuwenchen95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants