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

# DiffSl code and matrix type specified in constructor
# Defaults to f64 BDF solver unless specified
ode = ds.Ode(
    """
    in { r = 1.0 }
    k { 1.0 }
    u { 0.1 }
    F { r * u * (1.0 - u / k) }
    """,
    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.method = 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.4.0.tar.gz (238.6 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.4.0-cp314-cp314t-win_amd64.whl (3.3 MB view details)

Uploaded CPython 3.14tWindows x86-64

pydiffsol-0.4.0-cp314-cp314t-manylinux_2_28_x86_64.whl (43.0 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ x86-64

pydiffsol-0.4.0-cp314-cp314t-macosx_14_0_arm64.whl (34.0 MB view details)

Uploaded CPython 3.14tmacOS 14.0+ ARM64

pydiffsol-0.4.0-cp39-abi3-win_amd64.whl (3.3 MB view details)

Uploaded CPython 3.9+Windows x86-64

pydiffsol-0.4.0-cp39-abi3-manylinux_2_28_x86_64.whl (43.0 MB view details)

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

pydiffsol-0.4.0-cp39-abi3-macosx_14_0_arm64.whl (33.9 MB view details)

Uploaded CPython 3.9+macOS 14.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for pydiffsol-0.4.0.tar.gz
Algorithm Hash digest
SHA256 dc19662d621518c3fbea4b703157d22e7a6cb9f5654eedfe52f87ff471623e3e
MD5 4d9a054d36ec26d83587c5db146e0efe
BLAKE2b-256 e972c8d2034151bdb46036867c63727a27a9560fa4fe53911b5f1f324812cc2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.4.0-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 22567ebedd306f9f5f928dd96af1466a33afdcde59e518318baa4e914ad84701
MD5 67ee18e409a9a556988ebc38f2739fc5
BLAKE2b-256 c6bb17e4d6ef0da3164069514ad5ffe1005142559aa084a750cc054270d1bb8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.4.0-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4aa66e4dc2bc305e1d48196b9547e8fccc94fe5e354d0898eb7413ab056b2a47
MD5 8d286407c3de37668d0cd6703d9732ae
BLAKE2b-256 c40b5d7729f7747a4bea3cd27bbc982a88c2d3bc78162ef59ec29369d85f4140

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.4.0-cp314-cp314t-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 532caa4be9d4fa40114322ea6ea1ca9257481cbb582654821cd9db9953b1bdae
MD5 40bcd2bfe9e7bab678b5ebca0428c99d
BLAKE2b-256 ce131c6646a17631a9a702bb924e1afe4db125e49402fc8e790df74c08c54071

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pydiffsol-0.4.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c3b4711e828e351e362b5675d93bb6c6bc377bee7b26c7f70242ba1460f2380c
MD5 9e2940495a9ced37819145b6672f7cb3
BLAKE2b-256 ac55bbe1cf88016f0dc9499f32fb57d4a80aec88ba6a13e04c7b35100ce2b1c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.4.0-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cbae1ef311067986bdfb67fc35d42a34018d70eac563c1b7e107dd905b4864e4
MD5 c2b8e59c074d991dc93c9e987476c295
BLAKE2b-256 f6ce2baea91c977464b7204c4c3d151d9746b5e53b6d574d437a84c9bc07606f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydiffsol-0.4.0-cp39-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ffc0b68ac020be39eda2286f390ee08d54801cf27c6234a3ae5ba4c58535789c
MD5 c6735ab1d4f04da716576242ad15f656
BLAKE2b-256 556982345c975942ddc0074df43325141d3599b7d49d97eae2f2fb5a710ac610

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