nlls_gram
Levenberg-Marquardt and Gauss-Newton nonlinear least squares for JAX pytrees, with generalized Tikhonov regularization, inequality and complementarity constraints, and implicit differentiation.
Setup
uv add nlls-gram
For CUDA GPUs:
uv add nlls-gram "jax[cuda13]"
For local development:
uv sync --group dev --group docs --group benchmark
Run
import jax.numpy as jnp
from nlls_gram import LevenbergMarquardt
design = jnp.arange(24.0).reshape(4, 6)
y = jnp.ones(4)
solver = LevenbergMarquardt(lambda x, args, p: args["A"] @ x - p["y"])
result = solver.solve(jnp.zeros(6), {"A": design}, p={"y": y}, atol=1e-6)
Run tests, benchmarks, and docs:
uv run pytest -q
uv run pytest benchmarks/test_benchmarks.py --benchmark-only
uv run mkdocs build --strict
Documentation: https://highdimensionaleconlab.github.io/nlls_gram/
Metadata
Release files for nlls-gram 3.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nlls_gram-3.2.1.tar.gz | 281.1 kB | With provenance | Details for nlls_gram-3.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nlls_gram-3.2.1-py3-none-any.whl | Python 3 | none | any | Details for nlls_gram-3.2.1-py3-none-any.whl |
Total release size: 340.9 kB
Release files / nlls_gram-3.2.1.tar.gz
| Download URL | nlls_gram-3.2.1.tar.gz |
|---|---|
| Size | 281.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5baf9ac1775181cfdec8c5036117dbe013ad7d5eb105641f8239739bb77e00f4
|
|
BLAKE2b-256 checksum How to use checksums |
392f3829e75fe700abdc1ddce0426aa1a880a2a9e8652f410fec2a69395fd471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / nlls_gram-3.2.1-py3-none-any.whl
| Download URL | nlls_gram-3.2.1-py3-none-any.whl |
|---|---|
| Size | 59.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65303dd3e08243c795dcb534cc7e075b6549093110e30e035a62db53c3f09eeb
|
|
BLAKE2b-256 checksum How to use checksums |
7f5f0ac72f6b91e4002fa1e5f247a4c1aade80eb4d22c7d009c6456786c97a3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for nlls-gram 3.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for nlls_gram-3.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.