Skip to content
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

Port much of the C code to Python #1054

Open
nikfilippas opened this issue Apr 1, 2023 · 0 comments
Open

Port much of the C code to Python #1054

nikfilippas opened this issue Apr 1, 2023 · 0 comments

Comments

@nikfilippas
Copy link
Contributor

This was originally one of v3's milestones, but we decided to change it as it can be left for later, to speed up releasing v3.
The entire library can benefit from these changes:

  1. Vectorize all functions up to the level where they communicate with SWIG (it will make future migration a piece of cake).
  2. Decorator to automatically dispatch input and remove all the ndim checks in the output of vectorized functions. --> This removes the need to check the ndim of the output every time, in every function.
  3. Move easily portable code from C to Python using myccl. --> This is some work I have done independently to verify that most of the C code can be ported to Python with no speed disadvantage.

The 3rd step is much easier if 1 and 2 are done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant