Skip to main content

No project description provided

Project description

pydiffsol

Python bindings for diffsol

Example usage

import pydiffsol as ds
import numpy as np

ode = ds.Ode(
    """
    in { r = 1.0 }
    k { 1.0 }
    u { 0.1 }
    F { r * u * (1.0 - u / k) }
    """,
    matrix_type=ds.nalgebra_dense,
)

# Solve up to t = 0.4, overriding r input param = 2.0
params = np.array([2.0])
solution = ode.solve(params, 0.4)
print(solution.ys, solution.ts)

# Above defaults to bdf. Try esdirk34 instead
ode.ode_solver = ds.esdirk34
solution = ode.solve(params, 0.4)
print(solution.ys, solution.ts)

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

pydiffsol-0.5.2.tar.gz (236.2 kB view details)

Uploaded Source

Built Distributions

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

pydiffsol-0.5.2-cp314-cp314t-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.14tWindows x86-64

pydiffsol-0.5.2-cp314-cp314t-manylinux_2_28_x86_64.whl (47.2 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ x86-64

pydiffsol-0.5.2-cp314-cp314t-macosx_14_0_arm64.whl (36.9 MB view details)

Uploaded CPython 3.14tmacOS 14.0+ ARM64

pydiffsol-0.5.2-cp39-abi3-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.9+Windows x86-64

pydiffsol-0.5.2-cp39-abi3-manylinux_2_28_x86_64.whl (47.2 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ x86-64

pydiffsol-0.5.2-cp39-abi3-macosx_14_0_arm64.whl (36.9 MB view details)

Uploaded CPython 3.9+macOS 14.0+ ARM64

File details

Details for the file pydiffsol-0.5.2.tar.gz.

File metadata

  • Download URL: pydiffsol-0.5.2.tar.gz
  • Upload date:
  • Size: 236.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.3

File hashes

Hashes for pydiffsol-0.5.2.tar.gz
Algorithm Hash digest
SHA256 b5affb6b2b6189a74dba8c38d2200d740d61144d17ec8fd08c8e19e89ee377cd
MD5 e2db9ce1731e607c7621a9bda8a97e71
BLAKE2b-256 90b2bd3f30be470bcb5a514e37a02a3cc594fe2ed0d9e69560d17e01156c2b9c

See more details on using hashes here.

File details

Details for the file pydiffsol-0.5.2-cp314-cp314t-win_amd64.whl.

File metadata

File hashes

Hashes for pydiffsol-0.5.2-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 c2c95c821359950bcda22e3caa53deedd4a1641ba9fa1bc6eaa8e1a6faf9e69e
MD5 ccd361425a02257a8c9a9386b9a1877f
BLAKE2b-256 f9995088e1a81f2c1b980698acb28540cb5ebfbf46df07857930a3b9d63d984e

See more details on using hashes here.

File details

Details for the file pydiffsol-0.5.2-cp314-cp314t-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pydiffsol-0.5.2-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2645c2a2e7717e67d4ea793959d13d369d70b97b670736195bc1b5e81eff9cc1
MD5 6ee5674696d7bddd1592d98919904d83
BLAKE2b-256 10891c5f1538d135c0c99808428ecf9ab83a5cbb1285189d289f9ed8f48b4d95

See more details on using hashes here.

File details

Details for the file pydiffsol-0.5.2-cp314-cp314t-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pydiffsol-0.5.2-cp314-cp314t-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e6278ff74bba4ae51e930720120a5ff7e00f947d3d1e010474b92ab08de6f459
MD5 282f8342aec38805c97a884fc0aa1ee5
BLAKE2b-256 7076f6d658363ce5a915349b15fa5caa268e06a94d22f9393087a24b3fdbd39f

See more details on using hashes here.

File details

Details for the file pydiffsol-0.5.2-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: pydiffsol-0.5.2-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.3

File hashes

Hashes for pydiffsol-0.5.2-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 024ac97b2096f4bab76811cbb97cf6912acc07031685f716d3002faeaf2d352a
MD5 dcff5eac39c1e75ce24d66b8f674946a
BLAKE2b-256 26fdb5a6c2dc755d495c31d62834750e844ab00d462ae20dd3640cac247c4e2b

See more details on using hashes here.

File details

Details for the file pydiffsol-0.5.2-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pydiffsol-0.5.2-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 66370286565951cdb4a104929a0a4ce05265634a1d95099894542cf436cfc325
MD5 6e0efbbb7b878a2a00038b5da37f7662
BLAKE2b-256 e6ca901bc57399b5bd47899479ab709368dfd338da59a41c7f1b20a510793258

See more details on using hashes here.

File details

Details for the file pydiffsol-0.5.2-cp39-abi3-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pydiffsol-0.5.2-cp39-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 db6d926df360dc2e107f3a524b5bf139d2f186951406fe238c7dfabe251138c7
MD5 d0a08c66a6ff5f5e61936a0b5571d380
BLAKE2b-256 d6eb3e63722d89d3cc1040ce3b0e24018bc15d506e251283a2ff634b9b310bc4

See more details on using hashes here.

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