Skip to main content

DDE numerical solvers in Python.

Project description

torchdde

torchdde is a library that provides numerical solvers in Pytorch for Delay Differential Equations (DDEs) with constant delays.

Installation

pip install torchdde

or locally

git clone https://github.com/thibmonsel/torchdde.git
pip install torchdde/

Documentation

Github pages hosts the documentation at : https://thibmonsel.github.io/torchdde/

To generate the documentation locally, please look at CONTRIBUTING.MD.

Quick example

import torch
from torchdde import integrate, RK2

def f(t, y, args, history):
    return y * (1 - history[0])

solver = RK2()
delays = torch.tensor([1.0])
history_values = torch.arange(1, 5).reshape(-1, 1)
history_function = lambda t: history_values
solution = integrate(f, solver, ts[0], ts[-1], ts, y0, None, dt0=ts[1]-ts[0], delays=delays)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchdde-0.1.3.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torchdde-0.1.3-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

Details for the file torchdde-0.1.3.tar.gz.

File metadata

  • Download URL: torchdde-0.1.3.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for torchdde-0.1.3.tar.gz
Algorithm Hash digest
SHA256 611c37cd752fec7aeaa0e737d0d6de3d7709fa246c4498d5c5324dae09931005
MD5 be2914043404fac799ae1d5d6637a098
BLAKE2b-256 073571f1148723ca6dea1e14bc7279b54b550abc11259f361dee1c179f93ce77

See more details on using hashes here.

Provenance

The following attestation bundles were made for torchdde-0.1.3.tar.gz:

Publisher: release.yml on thibmonsel/torchdde

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file torchdde-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: torchdde-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 40.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for torchdde-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d21146db7648c82874dd2fc126161de9bb74bb14ed6d9c41f94f1923493d9db9
MD5 a9f0b4d7e39ab9b73e258e851fc58ee3
BLAKE2b-256 12a268de2c46647d4d82d262f69d98fd6ed95ff888d3e66d3bd4c3cc34329ea1

See more details on using hashes here.

Provenance

The following attestation bundles were made for torchdde-0.1.3-py3-none-any.whl:

Publisher: release.yml on thibmonsel/torchdde

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page