-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix tangent vector allocations (nearly) #168
Conversation
Codecov Report
@@ Coverage Diff @@
## master #168 +/- ##
==========================================
- Coverage 99.96% 99.84% -0.12%
==========================================
Files 20 20
Lines 2558 2562 +4
==========================================
+ Hits 2557 2558 +1
- Misses 1 4 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Ah I think I found a way, it was mainly TangentSpaceAtPoint where I will define in a next PR on Maniflds.jl
and then we have to check whether the allocation that include
but that one (though nice) includes a fight of ambiguities that at least I am not able to resolve (with line 91 in decorator_trait.jl) |
Yes, |
Most will not notice, because currently that is dispatched to the embedding and a default p of representation size allocated there. But this is the one thing failing here; for now defining that in FixedRank (and TangentSpaceAtPoint) does resolve this as well. |
The three lines added here are the same as on the other PR, where it seems a bug on 1.1 was fixed so our new method for mid point does no longer seem necessary. |
I would worry about these lines, soon we will just drop Julia 1.0 and those lines anyway. |
yes sure it will be fixed with the other still open PR. |
Just ran the Manifold tests completely and what does fail are PositiveNumbers, some interplay between rand! and the rug it seems? Not sure. I fear I again do not fully understand why that fails over on Manifolds. The question is then, do we check and fix that here or do we adopt PositiveNumbers? edit: besides that other types cases fail (SPDPoint), but that is expected since their tangent vectors before did not work at all and now those have to be fixed as well. Just for positive numbers I am not sure, why they fail. edit 2: Since it is really just positive numbers but for example not the circle, I would assume that is a bug in Positive Numbers and we could merge / register this PR. |
We still have one problem:
I tried to define
allocate_result(M::AbstractManifold, ::typeof(rand), p)
(commented out for now) but that is ambigous to the decorator path of allocations. The decorator path however would always pass for FixedRank to the Embedding. So we would need the specific allocation anyways?