-
Notifications
You must be signed in to change notification settings - Fork 10
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
@cast on functions with tuples as lvalues #61
Comments
This is essentially #15 . It would be nice to support, using StructArrays, but I haven't got around to writing it. |
Thanks for the response. I think unwrapping directly to arrays from a broadcasted function with multiple return values should be fixed at the language level. Tensors are a common data representation, and broadcasting on them is awkward except for the simplest case with mapslices. @cast addresses some issues albeit the return types can be very complicated, but there are still common use cases that are not handled elegantly. There are some threads about this topic, so I don't think I'm the only one feeling the pain. Given that array is a fundamental Julia datatype, this lack of functionality surprises me. I also suspect I'm paying some hidden performance penalities with casting. I'm not yet a savvy enough Julia user to understand the tradeoffs. |
Yes, lots of people would like this, I mean outside of TensorCast. StructArrays seems to provide a pretty good implementation of this
|
is there a way to use tensor cast for functions that return tuples? e.g.,
Here I want to use tensor cast to shape the returned pose from a set of planes e.g.
The text was updated successfully, but these errors were encountered: