{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/corrfunc-a-suite-of-blazing-fast-correlation","title":"Corrfunc --- A Suite of Blazing Fast Correlation Functions on the CPU","arxiv_id":"1911.03545","date":"2019-11-08","proceeding":null,"authors":["Manodeep Sinha","Lehman H. Garrison"],"abstract":"The two-point correlation function (2PCF) is the most widely used tool for quantifying the spatial distribution of galaxies. Since the distribution of galaxies is determined by galaxy formation physics as well as the underlying cosmology, fitting an observed correlation function yields valuable insights into both. The calculation for a 2PCF involves computing pair-wise separations and consequently, the computing time scales quadratically with the number of galaxies. The next-generation galaxy surveys are slated to observe many millions of galaxies, and computing the 2PCF for such surveys would be prohibitively time-consuming. Additionally, modern modelling techniques require the 2PCF to be calculated thousands of times on simulated galaxy catalogues of {\\em at least} equal size to the data and would be completely unfeasible for the next generation surveys. Thus, calculating the 2PCF forms a substantial bottleneck in improving our understanding of the fundamental physics of the universe, and we need high-performance software to compute the correlation function. In this paper, we present Corrfunc --- a suite of highly optimised, OpenMP parallel clustering codes. The improved performance of Corrfunc arises from both efficient algorithms as well as software design that suits the underlying hardware of modern CPUs. Corrfunc can compute a wide range of 2-D and 3-D correlation functions in either simulation (Cartesian) space or on-sky coordinates. Corrfunc runs efficiently in both single- and multi-threaded modes and can compute a typical 2-point projected correlation function ($w_p(r_p)$) for ~1 million galaxies within a few seconds on a single thread. Corrfunc is designed to be both user-friendly and fast and is publicly available at https://github.com/manodeep/Corrfunc.","url_abs":"https://arxiv.org/abs/1911.03545v1","url_pdf":"https://arxiv.org/pdf/1911.03545v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"corrfunc-a-suite-of-blazing-fast-correlation","repo_url":"https://github.com/manodeep/Corrfunc","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"corrfunc-a-suite-of-blazing-fast-correlation","repo_url":"https://github.com/adematti/corrfunc","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"corrfunc-a-suite-of-blazing-fast-correlation","repo_url":"https://github.com/kstoreyf/Corrfunc","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"corrfunc-a-suite-of-blazing-fast-correlation","repo_url":"https://github.com/kstoreyf/suave","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"corrfunc-a-suite-of-blazing-fast-correlation","repo_url":"https://github.com/tyanndb/vegacorr","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=1911.03545","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1911.03545"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/kstoreyf/Corrfunc","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tyanndb/vegacorr","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/manodeep/Corrfunc","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/kstoreyf/suave","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/adematti/corrfunc","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":28},"by_repo_kind":{"official":{"samples":2,"ran":0,"repositories":1},"listed":{"samples":26,"ran":0,"repositories":3}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"7fd6caf5bd5fd337","entry":"DD","repo":"manodeep/Corrfunc","repo_kind":"official","path":"Corrfunc/theory/DD.py","file_url":"https://github.com/manodeep/Corrfunc/blob/HEAD/Corrfunc/theory/DD.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7fd6caf5bd5fd337"}},{"code_sha256_prefix":"9e7bd0d41fdd0dea","entry":"DD","repo":"kstoreyf/suave","repo_kind":"listed","path":"Corrfunc/theory/DD.py","file_url":"https://github.com/kstoreyf/suave/blob/HEAD/Corrfunc/theory/DD.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9e7bd0d41fdd0dea"}},{"code_sha256_prefix":"b17d3205d420b876","entry":"DDrppi","repo":"adematti/corrfunc","repo_kind":"listed","path":"Corrfunc/theory/DDrppi.py","file_url":"https://github.com/adematti/corrfunc/blob/HEAD/Corrfunc/theory/DDrppi.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b17d3205d420b876"}},{"code_sha256_prefix":"c33b62188bf120c6","entry":"DDrppi","repo":"kstoreyf/Corrfunc","repo_kind":"listed","path":"Corrfunc/theory/DDrppi.py","file_url":"https://github.com/kstoreyf/Corrfunc/blob/HEAD/Corrfunc/theory/DDrppi.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c33b62188bf120c6"}},{"code_sha256_prefix":"bd6690646e113225","entry":"DDrppi_mocks","repo":"manodeep/Corrfunc","repo_kind":"official","path":"Corrfunc/mocks/DDrppi_mocks.py","file_url":"https://github.com/manodeep/Corrfunc/blob/HEAD/Corrfunc/mocks/DDrppi_mocks.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bd6690646e113225"}},{"code_sha256_prefix":"618c5e01b17db96e","entry":"DDrppi_mocks","repo":"kstoreyf/Corrfunc","repo_kind":"listed","path":"Corrfunc/mocks/DDrppi_mocks.py","file_url":"https://github.com/kstoreyf/Corrfunc/blob/HEAD/Corrfunc/mocks/DDrppi_mocks.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"618c5e01b17db96e"}},{"code_sha256_prefix":"e64834c441eaa52e","entry":"DDsmu","repo":"adematti/corrfunc","repo_kind":"listed","path":"Corrfunc/theory/DDsmu.py","file_url":"https://github.com/adematti/corrfunc/blob/HEAD/Corrfunc/theory/DDsmu.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e64834c441eaa52e"}},{"code_sha256_prefix":"a24dd214b8672883","entry":"DDsmu_mocks","repo":"adematti/corrfunc","repo_kind":"listed","path":"Corrfunc/mocks/DDsmu_mocks.py","file_url":"https://github.com/adematti/corrfunc/blob/HEAD/Corrfunc/mocks/DDsmu_mocks.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a24dd214b8672883"}},{"code_sha256_prefix":"9daaf3c0f7c4a041","entry":"DDsmu_mocks","repo":"kstoreyf/Corrfunc","repo_kind":"listed","path":"Corrfunc/mocks/DDsmu_mocks.py","file_url":"https://github.com/kstoreyf/Corrfunc/blob/HEAD/Corrfunc/mocks/DDsmu_mocks.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9daaf3c0f7c4a041"}},{"code_sha256_prefix":"e57d6b3bf568baa0","entry":"DDtheta_mocks","repo":"adematti/corrfunc","repo_kind":"listed","path":"Corrfunc/mocks/DDtheta_mocks.py","file_url":"https://github.com/adematti/corrfunc/blob/HEAD/Corrfunc/mocks/DDtheta_mocks.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e57d6b3bf568baa0"}},{"code_sha256_prefix":"2b738c4e902d1427","entry":"DDtheta_mocks","repo":"kstoreyf/Corrfunc","repo_kind":"listed","path":"Corrfunc/mocks/DDtheta_mocks.py","file_url":"https://github.com/kstoreyf/Corrfunc/blob/HEAD/Corrfunc/mocks/DDtheta_mocks.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2b738c4e902d1427"}},{"code_sha256_prefix":"3febe5bad899f2a1","entry":"convert_3d_counts_to_cf","repo":"adematti/corrfunc","repo_kind":"listed","path":"Corrfunc/utils.py","file_url":"https://github.com/adematti/corrfunc/blob/HEAD/Corrfunc/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3febe5bad899f2a1"}},{"code_sha256_prefix":"9a639823e13920bf","entry":"convert_3d_counts_to_cf","repo":"kstoreyf/Corrfunc","repo_kind":"listed","path":"Corrfunc/utils.py","file_url":"https://github.com/kstoreyf/Corrfunc/blob/HEAD/Corrfunc/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9a639823e13920bf"}},{"code_sha256_prefix":"06bf07676c20c837","entry":"convert_rp_pi_counts_to_wp","repo":"adematti/corrfunc","repo_kind":"listed","path":"Corrfunc/utils.py","file_url":"https://github.com/adematti/corrfunc/blob/HEAD/Corrfunc/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"06bf07676c20c837"}},{"code_sha256_prefix":"9ccc21330f1b3ba6","entry":"convert_rp_pi_counts_to_wp","repo":"kstoreyf/Corrfunc","repo_kind":"listed","path":"Corrfunc/utils.py","file_url":"https://github.com/kstoreyf/Corrfunc/blob/HEAD/Corrfunc/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9ccc21330f1b3ba6"}},{"code_sha256_prefix":"665d94d0e057b310","entry":"find_fastest_DDtheta_mocks_bin_refs","repo":"adematti/corrfunc","repo_kind":"listed","path":"Corrfunc/mocks/DDtheta_mocks.py","file_url":"https://github.com/adematti/corrfunc/blob/HEAD/Corrfunc/mocks/DDtheta_mocks.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"665d94d0e057b310"}},{"code_sha256_prefix":"53e0a3c271672923","entry":"find_fastest_DDtheta_mocks_bin_refs","repo":"kstoreyf/Corrfunc","repo_kind":"listed","path":"Corrfunc/mocks/DDtheta_mocks.py","file_url":"https://github.com/kstoreyf/Corrfunc/blob/HEAD/Corrfunc/mocks/DDtheta_mocks.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"53e0a3c271672923"}},{"code_sha256_prefix":"71a35b97c2b3821c","entry":"read_ascii_catalog","repo":"adematti/corrfunc","repo_kind":"listed","path":"Corrfunc/io.py","file_url":"https://github.com/adematti/corrfunc/blob/HEAD/Corrfunc/io.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"71a35b97c2b3821c"}},{"code_sha256_prefix":"b799088a09243e5d","entry":"read_ascii_catalog","repo":"kstoreyf/Corrfunc","repo_kind":"listed","path":"Corrfunc/io.py","file_url":"https://github.com/kstoreyf/Corrfunc/blob/HEAD/Corrfunc/io.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b799088a09243e5d"}},{"code_sha256_prefix":"2f252d5e484fde7e","entry":"read_catalog","repo":"adematti/corrfunc","repo_kind":"listed","path":"Corrfunc/io.py","file_url":"https://github.com/adematti/corrfunc/blob/HEAD/Corrfunc/io.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2f252d5e484fde7e"}},{"code_sha256_prefix":"49b2be2888acc783","entry":"read_fastfood_catalog","repo":"adematti/corrfunc","repo_kind":"listed","path":"Corrfunc/io.py","file_url":"https://github.com/adematti/corrfunc/blob/HEAD/Corrfunc/io.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"49b2be2888acc783"}},{"code_sha256_prefix":"6178d5d4d79e1ed7","entry":"read_fastfood_catalog","repo":"kstoreyf/Corrfunc","repo_kind":"listed","path":"Corrfunc/io.py","file_url":"https://github.com/kstoreyf/Corrfunc/blob/HEAD/Corrfunc/io.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6178d5d4d79e1ed7"}},{"code_sha256_prefix":"229aa65fa53a00aa","entry":"read_fortran_catalog","repo":"kstoreyf/Corrfunc","repo_kind":"listed","path":"Corrfunc/io.py","file_url":"https://github.com/kstoreyf/Corrfunc/blob/HEAD/Corrfunc/io.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"229aa65fa53a00aa"}},{"code_sha256_prefix":"1706462092886a80","entry":"return_file_with_rbins","repo":"adematti/corrfunc","repo_kind":"listed","path":"Corrfunc/utils.py","file_url":"https://github.com/adematti/corrfunc/blob/HEAD/Corrfunc/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1706462092886a80"}},{"code_sha256_prefix":"0349ed5eb4d10ad3","entry":"spline_bases","repo":"kstoreyf/Corrfunc","repo_kind":"listed","path":"Corrfunc/bases.py","file_url":"https://github.com/kstoreyf/Corrfunc/blob/HEAD/Corrfunc/bases.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0349ed5eb4d10ad3"}},{"code_sha256_prefix":"d4e127e9bcbf824f","entry":"vpf","repo":"adematti/corrfunc","repo_kind":"listed","path":"Corrfunc/theory/vpf.py","file_url":"https://github.com/adematti/corrfunc/blob/HEAD/Corrfunc/theory/vpf.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d4e127e9bcbf824f"}},{"code_sha256_prefix":"a315ef7c71ee60b4","entry":"vpf_mocks","repo":"adematti/corrfunc","repo_kind":"listed","path":"Corrfunc/mocks/vpf_mocks.py","file_url":"https://github.com/adematti/corrfunc/blob/HEAD/Corrfunc/mocks/vpf_mocks.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a315ef7c71ee60b4"}},{"code_sha256_prefix":"ab5bffcf82ea781e","entry":"vpf_mocks","repo":"kstoreyf/Corrfunc","repo_kind":"listed","path":"Corrfunc/mocks/vpf_mocks.py","file_url":"https://github.com/kstoreyf/Corrfunc/blob/HEAD/Corrfunc/mocks/vpf_mocks.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ab5bffcf82ea781e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}