Closed LucianBuzzo closed 1 year ago
@christopherzimmerman What do you think of this feature?
Hey! Thanks for the PR, looks like a great feature, eventually I'd love to see fully fleshed out advanced indexing, similar to numpy, where this can be combined where standard types of slices, I've just never had a chance to dig into it!
@christopherzimmerman Yep, definitely! I've already come across a few places where I'd really like to have access to that kind of functionality, so I may send a PR for that as well 😅
This commit introduces an advanced indexing operation that allows a tensor to be indexed by another tensor. This feature enhances the flexibility and expressiveness of tensor manipulation, enabling complex selection patterns that cannot be achieved with simple slicing.
Key changes include:
This feature brings us closer to parity with other established tensor libraries such as PyTorch and TensorFlow, and enhances the usability of our library for complex tensor operations.