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.2.tar.gz (25.8 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.2-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: torchdde-0.1.2.tar.gz
  • Upload date:
  • Size: 25.8 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.2.tar.gz
Algorithm Hash digest
SHA256 45d3a3190e0d7b2ff442a4576e8606204b05b54b6077d32794ffb5a90bacef4e
MD5 b269adcc080cd1f53b248ceb62266dd3
BLAKE2b-256 0e0ce40b01055fcd69f540fa8911619a6ba7f3afbf97ba928ff1cdc61b8655d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for torchdde-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: torchdde-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 39.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fb3648bfcd58e764cc23247b9a8d8acfe93f36044b302275cdaf18303c4d650d
MD5 0ec3535e761aa799e86bd46addf69200
BLAKE2b-256 0d3e00daf4acd96f8e8d642a8f1af337feabc1b55a90b6e0f03b3dd8369ca147

See more details on using hashes here.

Provenance

The following attestation bundles were made for torchdde-0.1.2-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