-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add vinds
for internal use of inds
without Tuple
specialization
#335
Conversation
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.
Thanks @mofeing, could you show us some example where this has some performance benefits? I am having a hard time seeing the utility of this. Maybe one example with BenchmarkTools
is enough... :)
@jofrevalles okay, so i found an example of where this affects on
|
This PR adds
vinds
function, which is just the oldinds
that returns theVector{Symbol}
underneath aTensor
.Keep in mind that
vinds
is dangerous if used externally because it allows to mutate the indices of aTensor
and that's why we madeinds
to return aTuple
ofSymbol
s.Still
vinds
is required for performance as usingTuple
can specialize too much.