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

Implement SFTtoAge in Jax and use vmap #70

Open
ufuk-cakir opened this issue Jun 8, 2024 · 0 comments
Open

Implement SFTtoAge in Jax and use vmap #70

ufuk-cakir opened this issue Jun 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ufuk-cakir
Copy link
Owner

The conversion from stellar formation time to age in this line

# TODO maybe implement this in JAX?

should be implemented in Jax using the cosmology function

def lookback_to_z(self, redshift):

and then we can vmap over all the stars particles.

This would be nice because this conversion can take some time if we have a lot of stars in the galaxy, and implementing in jax and vmap will give a huge performance boost

@ufuk-cakir ufuk-cakir added the enhancement New feature or request label Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant