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

Add support for passing an array of scale factors into halo_model_base.__call__ #1130

Open
mattkwiecien opened this issue Oct 24, 2023 · 0 comments
Assignees

Comments

@mattkwiecien
Copy link

In the cluster count likelihood, we evaluate the halo mass function within the integrand and therefore need this evaluation to be fast. We vectorized the code, but cannot fully because the halo mass function evaluation can only accept a float value for the scale factor. We would like this function call to also support passing an array of scale factor values.

Specifically, when we invoke

def __call__(self, cosmo, M, a):

we can pass an array of mass M, but not an array of scale factors a. It would be great to have this added into CCL, and have the for loop over the scale factors be implemented in the C code.

I think the for loop that needs to be modified is here (?):

void sigM_vec(ccl_cosmology * cosmo, double a,

@mattkwiecien mattkwiecien changed the title Add support for passing an array of scale factors into sigM_vec Add support for passing an array of scale factors into halo_model_base.__call__ Oct 24, 2023
@zdu863 zdu863 self-assigned this Mar 28, 2024
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

2 participants