Ambiguous type inference for optimization over a PowerManifold #153
-
I want to optimize a quadratic cost <x,Cx> w.r.t. a matrix x of dimension
However, it encountered the following error:
It seems to be a a type inference issue related to traits mensioned in this page of ManifoldBase.jl. How could I solve it? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Thanks for spotting this, I already narrowed it down to an M(n)WE at JuliaManifolds/Manifolds.jl#537 since that is an issue with Manifolds.jl and we will fix that soon I hope. |
Beta Was this translation helpful? Give feedback.
-
Ah, With the help of @mateuszbaran we found that the main problem is, that Neither of them exists on the edit: Or long story short: Neither distance nor log are implemented so that is where the error comes from. Both are not so easy, since approxiations to these just were published last year. |
Beta Was this translation helpful? Give feedback.
-
Addon number 2, you could do the following Define (after importing both)
then
does work as a rough estimate (which should be enough) and that you could use in the DebugEntryChange that I linked above. |
Beta Was this translation helpful? Give feedback.
Addon number 2, you could do the following
Define (after importing both)
then
does work as a rough estimate (which should be enough) and that you could use in the DebugEntryChange that I linked above.