-
Notifications
You must be signed in to change notification settings - Fork 67
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
To do: in-place API #163
Comments
The Python in-place operators would be like: pyiadd!(ans, x) # like ans += x |
These should generally return |
A function pyhasnext!(ans, iterator) would be useful to return |
Even for complicated functions (such as |
This issue has been marked as stale because it has been open for 30 days with no activity. If the issue is still relevant then please leave a comment, or else it will be closed in 7 days. |
This issue has been closed because it has been stale for 7 days. If it is still relevant, please re-open it. |
Make in-place versions of all the API functions, like:
These replace the pointer in
ans::Py
with the result of the computation, instead of allocating a newPy
each time. This will allow writing super-fast non-allocating code where needed.You'd use these by pre-allocating places to store the results with
pynew
, which can optionally by freed withpydel!
.The text was updated successfully, but these errors were encountered: