python-api

Package gauss-jacobi-quad (CPython extension)

Primary distribution: meson-python wheel from the repository root (pyproject.toml). Extension module gauss_jacobi_quad._core links Fortran + C ABI into one .so.

Features:

from gauss_jacobi_quad import gauss_jacobi, GaussJacobiError, GJP_OK, GJP_ERR_BOGAERT_AB

x, w = gauss_jacobi(n, alpha, beta)                 # method=None → auto
x, w = gauss_jacobi(n, alpha, beta, method="glr")
x, w = gauss_jacobi(n, alpha, beta, method="bogaert")

CLI entry point: gauss-jacobi-quad (or python -m package CLI).

Sources: python/src/gauss_jacobi_quad/. Tests: python/tests/.

Development ctypes loader

Path: interfaces/PyInterface/gauss_jacobi_quad.py (ctypes → libgjp_cinterp). Set GJP_CINTERP if auto-discovery fails. Tests: pytests/test_c_py_bindings.py.

Howto: Howto · Bindings.