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.1.tar.gz (236.0 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.1-cp314-cp314t-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.14tWindows x86-64

pydiffsol-0.5.1-cp314-cp314t-manylinux_2_28_x86_64.whl (47.5 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.14tmacOS 14.0+ ARM64

pydiffsol-0.5.1-cp39-abi3-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.9+Windows x86-64

pydiffsol-0.5.1-cp39-abi3-manylinux_2_28_x86_64.whl (47.5 MB view details)

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

pydiffsol-0.5.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for pydiffsol-0.5.1.tar.gz
Algorithm Hash digest
SHA256 62b7283ee1a8a3cbfe415c65fd187b62d0eac9a1821faabd56fead1156ff0502
MD5 05c9506a7eb9716f5bdf04bb34883a19
BLAKE2b-256 8a043618f25af74f45826b9412b7cbc4b0521c86052d486ac973530a2275c810

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.5.1-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 157464c8175803a04c15be088f137f3886e20a7f2c2a64da9a5f4e04cdf70683
MD5 fc584b2e1621e492baee175064c2c78d
BLAKE2b-256 3592a2e18f446c6f034169f6d0544fcfcc6672e84ae689d8584d22a63b2c24de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.5.1-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 682f7867db117b0b18c697f11dec9cc0f833878354ccc87a137edd8802d81577
MD5 ee594923c2a8cfd40852f7f124d9a34c
BLAKE2b-256 84c3c46e0b3c08faa66ddcd9eca84d4082d9495812552e056250f0fc75281cbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.5.1-cp314-cp314t-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 73172bae1c28bdeec67e6b87d89f35ac498102fddf9964ee626c25819e165d8b
MD5 9dc1689f65fc4f5364d006d2ecd27b4b
BLAKE2b-256 212e0a5a5e61a8452ecc9d68cf9df990dd7ec9339ddf187bc2c05d3e4397f37d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydiffsol-0.5.1-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 4.2 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.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a7013a7956ff9ba4f8a04002bd0c22e59de7e65a4dac789c51a28b723978c757
MD5 761f588934a18b9a4026ffc024582aed
BLAKE2b-256 e8d7e7d462d435ad49969f1265423e05234218e214b4d4f4837d4146d3fe5215

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.5.1-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a2966313a3f89f50251c1ff08ae492330d05bb29fe4f3819e0e1d3548f241d5e
MD5 e7e42e7b1c5c985ceea439ba32d2f2f0
BLAKE2b-256 58cc1ff05d649257c944b298483122447a3486117b3b9c6cbeca19c5c2a30ff0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.5.1-cp39-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ca3bc5714d7465d8189a0dc7219eb7f0297d50e4cd000de1ef213f8b12766e58
MD5 58cfee8b391680b0a3b7edb692075579
BLAKE2b-256 8918bc448b1bb3b15a35d82e4ebddfa54adbfadbae3ea418c9b174255d53ccf7

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