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.0.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.0-cp314-cp314t-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.14tWindows x86-64

pydiffsol-0.5.0-cp314-cp314t-manylinux_2_28_x86_64.whl (47.7 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.14tmacOS 14.0+ ARM64

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

Uploaded CPython 3.9+Windows x86-64

pydiffsol-0.5.0-cp39-abi3-manylinux_2_28_x86_64.whl (47.7 MB view details)

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

pydiffsol-0.5.0-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.0.tar.gz.

File metadata

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

File hashes

Hashes for pydiffsol-0.5.0.tar.gz
Algorithm Hash digest
SHA256 cd7926226d336b45d8223f35811c4d7f8ca0e90868fe5ce6ea7adb95ca3efdd3
MD5 3a37413487e699f1401a1743ab48ef30
BLAKE2b-256 975cc4d4f9e89e84b19e8a2cfd33e4f9ac1c3e963960966554a3312673cc24a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.5.0-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 3520080ac2f3e7406aa464c2652295090a7063cdd217f57395dbb6d5f2b64d44
MD5 46c8022d4e1d6b1e9270d19366bd98e7
BLAKE2b-256 38f4501586a5b4b3c65788e412b384f11fcc51cef802a6c121f27f1bae273f11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.5.0-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8d3a96a6436cb9465bb3f31e3cd4169d2b2568bd08d093cfad37da40734f7546
MD5 09dda5c6fd77123f06ee7ffa5e26e5b3
BLAKE2b-256 1441dd9b33da75aade8dfcd39f2040151738768a16e0d15179adb50d3e6d36c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.5.0-cp314-cp314t-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 166ed1a2cbb48fb19789b1be7c2126d60b11c74d942d2ad4341ab4206806a51b
MD5 89b125879a6e0d89eec323822e3f2b2c
BLAKE2b-256 559d7a0b536fc1144131b40fb13a925d17e0952f6540f8254a63b0cd2a2007b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydiffsol-0.5.0-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.1

File hashes

Hashes for pydiffsol-0.5.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1f8633701db0085008f32154a86fa0e4fa811b74633ca238dc0e19943c44a89b
MD5 b7182415a5d9b09c402b6935ca27322d
BLAKE2b-256 536cc2f477509873655c948fcbf5eef28095fa4aa9f9bd839138b530b99d2903

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.5.0-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5986bd3c934a52efc5bf0068ded7b0275f499230e1fcbec3d2744dd91b8ea3d2
MD5 c41d269e29f5c3a59b173826638dfcec
BLAKE2b-256 daeab0c4650559155bc5686c9b323ea9f7baed331b01a1a47961b6220861f6be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.5.0-cp39-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 372a0a32637bee48d5c7b7c046e091abb528ac92bfcdc6850794fd3e10e37210
MD5 cd92788d87b560aa1181941ca83eb648
BLAKE2b-256 1c693098102fc6ff950b37066d2493d4cfbf6d91768cbef37795fec5070589b4

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