RepositoryCBRBrazil
NumCosmo

NumCosmo/NumCosmo

NumCosmo main code

49stars
20forks
2issues
2views

NumCosmo

NumCosmo is a C library for cosmological calculations and statistical analysis. It is written in C using GObject, so every class is usable from Python (and other GObject-Introspection languages) through the numcosmo_py package without writing binding code.

Build Status License: GPL v3 codecov

Visit NumCosmo's website for more information.

What it provides

  • Cosmological observables — background and distances ($\Lambda$CDM, wCDM, kinematic reconstructions), matter power spectra (linear and Halofit), large-scale structure, galaxy clusters, weak lensing, SNIa, BAO, CMB, and cross-correlations.

  • Statistical framework — best-fit estimation, Fisher forecasts, and MCMC samplers (ESMCMC and the APES sampler), parallelized with MPI and OpenMP.

  • API documentation — NumCosmo (cosmology) and NumCosmoMath (math foundation).

Get Started

To get started with NumCosmo, follow these steps:

  1. Installation: Clone the repository and install the necessary dependencies as outlined in the installation guide.

  2. Examples and Tutorials: Work through the examples and tutorials on the website to see how to drive NumCosmo for cosmological calculations and statistical analysis.

  3. Contribute: NumCosmo is an open-source project, and we welcome contributions from the community.

Citation

If you find NumCosmo useful for your research or project, please consider citing it:

@Misc{Vitenti2012c,
  author        = {S. D. P. Vitenti and M. Penna-Lima},
  title         = {Numerical Cosmology -- {NumCosmo}},
  year          = {2014},
  howpublished  = {Astrophysics Source Code Library},
  eprint        = {1408.013},
  url           = {https://github.com/NumCosmo/NumCosmo},
  adsurl        = {http://adsabs.harvard.edu/abs/2014ascl.soft08013D},
  archiveprefix = {ascl},
  primaryclass  = {ascl}
}

License

NumCosmo is released under the GNU General Public License v3.0. See the license file for more details.

Similar Projects

Discover other similar projects and AI models.

RepositoryC
manodeep/Corrfunc

⚡️⚡️⚡️Blazing fast correlation functions on the CPU.

206
Aug 16, 2026
RepositoryC++
romgrk/node-gtk

GTK bindings for NodeJS

580
Jul 5, 2026
RepositoryTypeScript
gjsify/ts-for-gir

TypeScript type definition generator for GObject introspection interfaces

291
Oct 30, 2026
RepositoryRust
gtk-rs/gir

Tool to generate rust bindings and user API for glib-based libraries

277
Nov 23, 2026
RepositoryFortran
cmbant/CAMB

Code for Anisotropies in the Microwave Background

265
Nov 30, 2026
RepositoryRuby
mvz/gir_ffi

Auto-generate bindings for GObject based libraries at run time using FFI

145
Oct 17, 2026
RepositoryPython
bccp/nbodykit

Analysis kit for large-scale structure datasets, the massively parallel way

123
Nov 7, 2025
RepositoryPython
franciscovillaescusa/Quijote-simulations

Large suite of N-body simulations

107
Nov 22, 2026
RepositoryCrystal
hugopl/gi-crystal

Tool to generate Crystal bindings for gobject-based libraries (i.e. GTK)

59
Nov 30, 2026