feat: Add JAX acceleration support to z_n_search#966
feat: Add JAX acceleration support to z_n_search#966temp-noob wants to merge 3 commits intoStingraySoftware:mainfrom
Conversation
|
@matteobachetti, this is my first time contributing to the repo. Let me know if I can help out with more things or things which would be more crucial. |
|
@temp-noob thanks for the PR. |
|
Sorry for the late reply. And thanks for the review @matteobachetti. |
|
@matteobachetti let me know if I can provide any more clarifications ? |
|
@temp-noob We have the notebooks that we use for documentation here: https://github.com/stingraysoftware/notebooks If you could modify the notebook with Z searches and make it work with your code, we would have a clearer idea of the actual usability of the code, besides a few tests (which are still necessary and important, of course!) |
|
@matteobachetti added this notebook for the jupyter notebook tests: StingraySoftware/notebooks#129 |
|
@matteobachetti let me know if this looks good to you. |
feat: Add JAX acceleration support to z_n_search
Adds optional JAX-accelerated backend for z_n_search via use_jax parameter.
The JAX implementation computes exact unbinned Z^2_n statistics directly from
event phases, complementing the existing numba-JIT'd binned approach.
Implementation details:
Added comprehensive test suite (16 tests):
Performance on CPU: 1D (no fdot vector) searches gain ~19x speedup. Larger gains expected
on GPU-enabled JAX backends.
This change is