Skip to content

Feature/xp namespace#190

Merged
Jammy2211 merged 33 commits intomainfrom
feature/xp_namespace
Nov 10, 2025
Merged

Feature/xp namespace#190
Jammy2211 merged 33 commits intomainfrom
feature/xp_namespace

Conversation

@Jammy2211
Copy link
Owner

Large refactor which passes the numpy or jax numpy import through the code as xp.

This means that no jax arrays are created inside the source code by default, with all calculations default to Numpy, giving the following benefits:

Unit tests and general code use runs faster as it removes JAX overheads.
Numba support for efficient CPU use can be easily retained as no JAX array mixing.
Less ambiguity in sections of code which dont play nice with JAX arrays (e.g. visualization).
Will allow for an easier more explicit user interface where users JAX jit functions themselves and pass the namespace. to get fast run times.

@Jammy2211 Jammy2211 merged commit 0e0e429 into main Nov 10, 2025
8 checks passed
@Jammy2211 Jammy2211 deleted the feature/xp_namespace branch November 30, 2025 16:31
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

Successfully merging this pull request may close these issues.

1 participant