Skip to main content

pydaarem

Python interpretation of DAAREM: damped Anderson acceleration with restarts and monotonicity control for fixed-point iterations.

pydaarem supports the Python array API standard. It computes with the array library and on the device of the start value (for example NumPy, PyTorch or CuPy), in float64, and it returns arrays of that library.

Documentation: https://scott-huberty.github.io/pydaarem/

Install

pip install pydaarem

The example data sets in pydaarem.datasets need two more packages. To install them too:

pip install "pydaarem[datasets]"

Use

from pydaarem import daarem

result = daarem(par, fixptfn, objfn, control={"maxiter": 1000})

The controls and the result keys are the R names with each dot replaced by an underscore. The controls are maxiter, order, tol, mon_tol, cycl_mon_tol, kappa, alpha, resid_tol, convtype, and intermed.

Development

This project uses pixi to manage the Python and R environments.

pixi run test                                  # install R daarem from CRAN, then run pytest with coverage
pixi run -e lint lint                          # run ruff and numpydoc on all files
pixi run -e lint pre-commit install            # run the same checks before each commit
pixi run -e docs docs                          # build the documentation in docs/_build/html

The documentation contains the API reference and the examples in examples/. sphinx-gallery runs each example during the build.

The parity tests compare pydaarem with the R daarem package, version 0.7.

Release

  1. Set the new version in pyproject.toml, and merge that change into main.

  2. Tag the merge commit with the version and push the tag:

    git tag v0.1.0
    git push origin v0.1.0
    

The Release workflow builds the sdist and the wheel, checks that the tag matches the version, and publishes both on PyPI.

License

pydaarem is a Python port of the R package daarem (version 0.7) by Nicholas Henderson and Ravi Varadhan, and is distributed under the same license, the GNU General Public License version 2 (GPL-2.0-only). See LICENSE.

Metadata

Release files for pydaarem 0.1.0

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

Source distribution (sdist)

Source distribution for pydaarem 0.1.0
File Size Uploaded Provenance Actions
pydaarem-0.1.0.tar.gz 24.8 kB With provenance Details for pydaarem-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydaarem 0.1.0
File Interpreter ABI Platform Actions
pydaarem-0.1.0-py3-none-any.whl Python 3 none any Details for pydaarem-0.1.0-py3-none-any.whl

Total release size: 41.8 kB

Release files / pydaarem-0.1.0.tar.gz

Download URL pydaarem-0.1.0.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e604b824f12c826d754a94381e35dfc01cbe63e3a018d1807323aed95ac8c4e2
BLAKE2b-256 checksum
How to use checksums
351646ad827b2f5cc786b022c19522fc01101a96c97c79c0b711cd7adc2352a1
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 2, 2026.

Transparency log

Release files / pydaarem-0.1.0-py3-none-any.whl

Download URL pydaarem-0.1.0-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac4333831c28ea660ba410ee1d5f9278e0b463524579d2de6d13b7c210bcf527
BLAKE2b-256 checksum
How to use checksums
3b91f2621c8c19af2bb740685b0b32038bd27db968b40ecaa7d0ae82f7073148
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 2, 2026.

Transparency log

Security for pydaarem 0.1.0

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 pydaarem-0.1.0.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 2, 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

0.1.0 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