-
Notifications
You must be signed in to change notification settings - Fork 56
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
getindex not implemented on ProductGroup and is there a way to view components? #495
Comments
Thanks, we should definetly do something about this. The one thing we could check is, whether its reasonable to make this more general, i.e. to |
I'll fix it, this definitely should work. I wouldn't use |
Regarding viewing components, do you mean viewing parts of an affine or screw matrix for SE(n)? Because I don't really see how viewing would be useful for |
Thank you very much for the quick fix.
I'm trying to improve optimization performance and currently I copy values from a container to the cost function based on the structure of the graph. I experimented with creating a product manifold with all the variables (tired with 100 for now) but I don't want to copy the data to the cost function every iteration. It works something like this: the cost is build from the structure, so i would evaluate: I previously used (before upgrading to Manifolds.jl) a I hope that is clear enough, that's why I asked how to create a view of the components. There is a lot of room for improvement, but I'm trying to take small steps at a time. |
In By the way, could you should me a small-ish example of code you are benchmarking? You don't need to remove AMP/IncrementalInference stuff. Achieving good performance with Manifolds.jl is not always intuitive. One more tip, if you have a product of something like 100 manifolds, you should try factoring it into a product of a few |
Also keep in mind that you can have things like a product manifold of power manifolds of product manifolds. |
Yes, of course, thanks. I was stuck in the way of thinkging pre Manifolds.jl code where I just had a vector and I had to do a view for slices to avoid copies. But when I read your answer I realized it.
So far I'm working here JuliaRobotics/IncrementalInference.jl#1546 (comment) (this is one of the factors i'm testing with), so we can perhaps continue the discussion there. I'm still experimenting with how exactly the implementation should look. Therefore, I'll send you an example as soon as I've made enough progress there. I first want to refactor into using this tip you gave:
That is a great idea. Thanks, I will try it out. |
I added this to carry on and it seems to work.
EDIT: put in the correct stack trace
The text was updated successfully, but these errors were encountered: