GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
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
Would be nice to be able to define functions that take arbitrary dimensional memoryviews. Perhaps could use syntax like double[...] a. Interestingly this comes up in CEP 517 in this section and a few SO questions.
Sounds like a nice feature. A few comments:
double[:, :, ...]
That sounds reasonable. Was also thinking about how best to enforce contiguity (e.g.
double[..., ::1] a as C-order).
double[..., ::1] a
Where does the hard limit come from? Cython itself? Python? Something else?
Do we have a good idea of where those places are?
The hard limit is in Cython.
Search for ndim in Cython/Compiler/, that should point you to most of the interesting compile time decisions.