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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
611c37cd752fec7aeaa0e737d0d6de3d7709fa246c4498d5c5324dae09931005
|
|
| MD5 |
be2914043404fac799ae1d5d6637a098
|
|
| BLAKE2b-256 |
073571f1148723ca6dea1e14bc7279b54b550abc11259f361dee1c179f93ce77
|
Provenance
The following attestation bundles were made for torchdde-0.1.3.tar.gz:
Publisher:
release.yml on thibmonsel/torchdde
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
torchdde-0.1.3.tar.gz -
Subject digest:
611c37cd752fec7aeaa0e737d0d6de3d7709fa246c4498d5c5324dae09931005 - Sigstore transparency entry: 193449326
- Sigstore integration time:
-
Permalink:
thibmonsel/torchdde@365255736dac844cabd6d17d6050e1b1ec642ca8 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/thibmonsel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@365255736dac844cabd6d17d6050e1b1ec642ca8 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d21146db7648c82874dd2fc126161de9bb74bb14ed6d9c41f94f1923493d9db9
|
|
| MD5 |
a9f0b4d7e39ab9b73e258e851fc58ee3
|
|
| BLAKE2b-256 |
12a268de2c46647d4d82d262f69d98fd6ed95ff888d3e66d3bd4c3cc34329ea1
|
Provenance
The following attestation bundles were made for torchdde-0.1.3-py3-none-any.whl:
Publisher:
release.yml on thibmonsel/torchdde
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
torchdde-0.1.3-py3-none-any.whl -
Subject digest:
d21146db7648c82874dd2fc126161de9bb74bb14ed6d9c41f94f1923493d9db9 - Sigstore transparency entry: 193449331
- Sigstore integration time:
-
Permalink:
thibmonsel/torchdde@365255736dac844cabd6d17d6050e1b1ec642ca8 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/thibmonsel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@365255736dac844cabd6d17d6050e1b1ec642ca8 -
Trigger Event:
push
-
Statement type: