-
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
Typed instance-free allocation #192
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #192 +/- ##
==========================================
- Coverage 99.93% 99.90% -0.03%
==========================================
Files 30 31 +1
Lines 3264 3292 +28
==========================================
+ Hits 3262 3289 +27
- Misses 2 3 +1 ☔ View full report in Codecov by Sentry. |
I will have to check this carefully; Then knowing My idea for a solution is for now something like
Will check whether your function does that. |
So I looked at this a bit closer, and I still have to figure out more places, here is an example meant in the original issue: in a |
|
That's neat indeed, I currently used What do you mean bu “not optimal” – in sense of speed/allocation or in sense of usability? We could map |
Yes, I meant in the sense of speed and allocations. Julia currently can't remove the actual allocation in
Sure, that makes sense. Maybe we could name it |
|
I've added |
Yes, naming is the only thing left. What I do not like is that Here are some ideas
|
|
Just knowing the type of the point that should be doable, sure; it is then not necessarily a |
I think we could do |
That sounds reasonable. In the long run (among others for a forthcoming solver) I would love to have Vector bundles here as well, then we would have the types here as well. but you already said #193 you want to review that thoroughly, which I can fully understand. |
I think we can merge this now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Oh, where does the one line we loose on project coverage? Maybe check real quick, but otherwise merge. |
Addresses JuliaManifolds/Manopt.jl#400 . I think
similar
is a better default becauserand
is doing much more work than required in these circumstances.allocate_as
definitely need many special cases which I will work on later.@kellertuer what do you think about this approach?