-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Return var
results when indexing
#487
Comments
Can you clarify what you mean by providing an example? There are multiple ways to get a mutable value from a
And probably more than I'm not aware of right now. |
I'm all for it but every time I tried I had nasty bugs that surfaced in the test suite. In particular returning The workaround is to assign the result of indexing to a var first and pass that to the function. |
It would be handy to add indexing operators with return type
var Tensor[T]
so that the result can be passed to a function for in-place operations. This may relate to #52.The text was updated successfully, but these errors were encountered: