ASCL.net

Astrophysics Source Code Library

Making codes discoverable since 1999

ASCL Code Record

[ascl:2502.030] hmvec: Vectorized halo model code

hmvec is a pure Python/numpy vectorized general halo model and HOD code. It includes support for 3d power spectra involving NFW, Battaglia electron density profiles and galaxy HODs. It also supports 2d power spectra including tSZ, cosmic shear, galaxy-galaxy lensing and CMB lensing. hmvec calculates a vectorized FFT for a given profile over all points in mass and redshift, using one double loop over mass and redshift to interpolate the profile Fourier transforms to the target wavenumbers; every other part of the code is vectorized.

Code site:
https://github.com/simonsobs/hmvec
Used in:
https://ui.adsabs.harvard.edu/abs/2023PhRvD.107h3502F
Described in:
https://ui.adsabs.harvard.edu/abs/2018arXiv181013423S
Bibcode:
2025ascl.soft02030M

Views: 129

ascl:2502.030
Add this shield to your page
Copy the above HTML to add this shield to your code's website.