8000 GitHub - stillwater-sc/mp-ode: Mixed-precision Ordinary Differential Equations solvers · GitHub
[go: up one dir, main page]

Skip to content
stillwater-scPublic

Repository files navigation

mp-ode

CMake

Documentation: https://stillwater-sc.github.io/mp-ode/

Mixed-precision Ordinary Differential Equation solvers. mp-ode composes two header-only libraries — MTL5 for linear algebra and Universal for parameterized number systems — to explore ODE integrators under custom arithmetic (half precision, posits, ...).

MTL5 deliberately has no dependency on Universal: it is the general linear-algebra layer. mp-ode is the integration layer where MTL5's algorithms meet Universal's number types.

Build

# Dependencies (MTL5 + Universal) are pulled automatically via FetchContent.
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j

# Run the smoke test
ctest --test-dir build --output-on-failure

# Run the forward-Euler precision demo (optional arg: step count)
./build/applications/euler_precision/euler_precision

Using local checkouts instead of fetching from GitHub:

cmake -B build \
  -DFETCHCONTENT_SOURCE_DIR_MTL5=../mtl5 \
  -DFETCHCONTENT_SOURCE_DIR_UNIVERSAL=../universal

Layout

applications/euler_precision/   # forward Euler accuracy across precisions
include/sw/mp_ode/              # shared composition-layer headers
tests/                          # smoke tests
docs/                           # documentation pages, incl. roadmap.md
docs-site/                      # Astro/Starlight site generated from docs/

License

MIT — see LICENSE.

Releases

Packages

Contributors

Languages

0