Skip to main content

nlls_gram

CI Docs PyPI Python versions License: MIT

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.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nlls-gram 3.2.4
File Size Uploaded Provenance Actions
nlls_gram-3.2.4.tar.gz 296.0 kB With provenance Details for nlls_gram-3.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nlls-gram 3.2.4
File Interpreter ABI Platform Actions
nlls_gram-3.2.4-py3-none-any.whl Python 3 none any Details for nlls_gram-3.2.4-py3-none-any.whl

Total release size: 362.9 kB

Release files / nlls_gram-3.2.4.tar.gz

Download URL nlls_gram-3.2.4.tar.gz
Size 296.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b8e0b9cd78f0f7f5fd4fdf167527359e3c6148c0d90e849ead4eb2a5d19e5de0
BLAKE2b-256 checksum
How to use checksums
103b80783870515266741c9c5e6879fc865ede59a96b33e4d1e5ec5f791900dc
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 24, 2026.

Transparency log

Release files / nlls_gram-3.2.4-py3-none-any.whl

Download URL nlls_gram-3.2.4-py3-none-any.whl
Size 66.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab2bf0728d1c5f427c659cda7b05990064f8fd203cebe986780e9caf3f5c488c
BLAKE2b-256 checksum
How to use checksums
f630066ea1d6aac47be80b438957c00412abf696c558b6174ba1735eee1b61ce
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 24, 2026.

Transparency log

Security for nlls-gram 3.2.4

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.

Select from 2 files

Attestation for nlls_gram-3.2.4.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 24, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

3.2.4 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page