-
Notifications
You must be signed in to change notification settings - Fork 2.2k
please consider adding index operator to numpy.h array_t #621
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
Comments
There's |
It is just syntax - but syntax is important. It allows writing indexing in a way that looks familiar, and can be easily mechanically translated from other familiar forms. |
It's consistent with Eigen's indexing as well. But that said, |
The one issue with an The Supporting this via the So while I appreciate the syntactic benefit of having a |
The more convenient and faster |
With this change we can easily wrap old c++ code for python. Providing operator() makes it easy to transform, for example:
a[2][3] = 5;
double b = a[2][3];
into
a(2,3) = 5;
double b = a(2,3);
The text was updated successfully, but these errors were encountered: