Skip to main content

refloxide

An extremely fast 4×4 transfer-matrix engine for polarized reflectivity from stratified media — Rust core, optional wgpu GPU, thin Python bindings.

10k-slab uniaxial wall time 10k-slab uniaxial wall time

10 000 uniaxial film slabs · 256 q · Apple Silicon · vs PyPXR plugin

More charts

1 slab · wall time

1 slab · peak RSS

10k slabs · wall time

10k slabs · peak RSS

uv sync --group dev --extra plugin
uv run python examples/gpu_backend_bench.py --plot

Installation

pip install refloxide              # core TMM (CPU + GPU feature)
pip install 'refloxide[plugin]'    # plus refnx modeling / fitting
# or
uv add refloxide
uv add 'refloxide[plugin]'

refloxide[core] is an empty alias of the bare install. refloxide[all] aliases [plugin]. Wheels build with Maturin features python and gpu; use device="gpu" when a wgpu adapter is available (see GPU guide).

Quick start

from refloxide.tmm import uniaxial_reflectivity

refl, tran = uniaxial_reflectivity(q, layers, tensor, energy_ev, parallel=False)
refl, tran = uniaxial_reflectivity(
    q, layers, tensor, energy_ev, parallel=False, device="gpu"
)

Development

git clone https://github.com/ALS-RSOXS/refloxide.git
cd refloxide
make develop
make test && make verify

License

GPL-3.0 — see LICENSE.

Metadata

Release files for refloxide 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for refloxide 0.2.1
File Size Uploaded
refloxide-0.2.1.tar.gz 11.6 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for refloxide 0.2.1
File
refloxide-0.2.1-cp315-cp315t-manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 free-threading Linux glibc 2.28+ x86-64 Details
refloxide-0.2.1-cp315-cp315-manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.28+ x86-64 Details
refloxide-0.2.1-cp314-cp314t-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 Details
refloxide-0.2.1-cp314-cp314t-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ ARM64 Details
refloxide-0.2.1-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details
refloxide-0.2.1-cp314-cp314-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64 Details
refloxide-0.2.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
refloxide-0.2.1-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details
refloxide-0.2.1-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details
refloxide-0.2.1-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
refloxide-0.2.1-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details
refloxide-0.2.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
refloxide-0.2.1-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details
refloxide-0.2.1-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details
refloxide-0.2.1-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
refloxide-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details

Total release size: 68.1 MB

Release files / refloxide-0.2.1.tar.gz

Download URL refloxide-0.2.1.tar.gz
Size 11.6 MB
Tags Source
SHA-256 checksum
How to use checksums
1d767885f8b6d59a828ad5ce8da4ca4b2b1ec1f0cadc8dd8ed20fcb249d95796
BLAKE2b-256 checksum
How to use checksums
5f6496cf06db27837de0a6df607289aab374b99beef53ef1975c5699b8bc9bc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp315-cp315t-manylinux_2_28_x86_64.whl

Download URL refloxide-0.2.1-cp315-cp315t-manylinux_2_28_x86_64.whl
Size 4.1 MB
Tags CPython 3.15 CPython 3.15 free-threading Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
469812de68c680b55af63d87effff6127dd521bb8f2fa717319b82af200b38a8
BLAKE2b-256 checksum
How to use checksums
1c6257277fcf0b509557d82b167844e48c72355623c535c40b6efc7f71405d49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp315-cp315-manylinux_2_28_x86_64.whl

Download URL refloxide-0.2.1-cp315-cp315-manylinux_2_28_x86_64.whl
Size 4.1 MB
Tags CPython 3.15 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
91d3a299db293d8f4823c872aba3e60f7a3f047a7c24b963a2a7d033b62205c1
BLAKE2b-256 checksum
How to use checksums
d885f415fdd9fe06eee0d43ae423f4161e1065c4d4d7aea4f6de7d5c9a10a267
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp314-cp314t-manylinux_2_28_x86_64.whl

Download URL refloxide-0.2.1-cp314-cp314t-manylinux_2_28_x86_64.whl
Size 4.1 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1162dbe8623c52bf5061ded312e13fb6a85c5ef2f3bc74d986ba45566d935eca
BLAKE2b-256 checksum
How to use checksums
f945c28818e030aad9e9e8ccef4043dec89681b636936e9051a206fd5aedfaec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp314-cp314t-manylinux_2_28_aarch64.whl

Download URL refloxide-0.2.1-cp314-cp314t-manylinux_2_28_aarch64.whl
Size 3.9 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
07de938d46345529f81ddb277cdc795999c4b61b8be12e2b4c5a448ece4aa3fb
BLAKE2b-256 checksum
How to use checksums
1f2744e333baa155b9eaddd2d18b4193a0966766c4404e31b18189331351aeaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL refloxide-0.2.1-cp314-cp314-manylinux_2_28_x86_64.whl
Size 4.1 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0eb83b9aab19264c407f7903a91cad17b023c650fa819eac8779b9de275098a4
BLAKE2b-256 checksum
How to use checksums
b5632e8302775aa6484d7774c999e0e70cd535cf229b8da67d56f2b45f165910
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp314-cp314-manylinux_2_28_aarch64.whl

Download URL refloxide-0.2.1-cp314-cp314-manylinux_2_28_aarch64.whl
Size 3.9 MB
Tags CPython 3.14 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
34d69c820cd2178bc4d1b0be69f3e6d243ec680d6192b2e30a658c40742210ad
BLAKE2b-256 checksum
How to use checksums
73b2c8366cdcbd75668d7d043766fb59ab486dc116a6d5bf4bd0fec8c9bd156e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp313-cp313-win_amd64.whl

Download URL refloxide-0.2.1-cp313-cp313-win_amd64.whl
Size 3.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
169ed94223abc97135e44211da46c348b95a8bfc56343c52ad91ad2aa8db3c47
BLAKE2b-256 checksum
How to use checksums
ccde8982031ac88a745df7853899166a5e2a01c550683ab81e8c36069a6c0e08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL refloxide-0.2.1-cp313-cp313-manylinux_2_28_x86_64.whl
Size 4.1 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5ef715ada99dafd95fa68b448ce5ac78dc15cd4e648bce8cbf76c55ecb38d5d6
BLAKE2b-256 checksum
How to use checksums
c260a2ac9b519b121f862efff57ef21ea13d3846298039850aa659138044ce51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL refloxide-0.2.1-cp313-cp313-manylinux_2_28_aarch64.whl
Size 3.9 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
e1a87044928964270a9f944e655fec4f31d24e9d0e9d46859fbac7eaee123d44
BLAKE2b-256 checksum
How to use checksums
b9472e13b2d651a81414a218e2721293bdc723bde5bb89c39603e24c0add3707
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp313-cp313-macosx_11_0_arm64.whl

Download URL refloxide-0.2.1-cp313-cp313-macosx_11_0_arm64.whl
Size 2.4 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
de67c9160913180aea516fb95d875e3d5193757c53a98ea6d83321f1b7b6c9d1
BLAKE2b-256 checksum
How to use checksums
0be27533eead41f8dd1db2e4699b22a3b41111f9460f6a66e77a39746c1c6386
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp313-cp313-macosx_10_12_x86_64.whl

Download URL refloxide-0.2.1-cp313-cp313-macosx_10_12_x86_64.whl
Size 2.5 MB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
a8486fbb195ccae566dd7fe0500136bb734310d70bd2af3479619e94e20b7628
BLAKE2b-256 checksum
How to use checksums
c96682bcbc20bd9cce6b9957bc5d40d5546909e808194017da4b34f88291ed1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp312-cp312-win_amd64.whl

Download URL refloxide-0.2.1-cp312-cp312-win_amd64.whl
Size 3.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
af2e6bd63dc96ccc89ce05a6d443cb8c60e516d374475031300e80b2bfc1b05a
BLAKE2b-256 checksum
How to use checksums
4ffa7f113162b8b206c658cfb292589aa6415689bb9493199072e05552a1c305
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL refloxide-0.2.1-cp312-cp312-manylinux_2_28_x86_64.whl
Size 4.1 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d77d8525881f04ed9828bf38b662820012631af44605d182ada403a064891323
BLAKE2b-256 checksum
How to use checksums
8976621292c450308005cb9e9a64022791cae9869e62f52c8f949a8490ae197d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL refloxide-0.2.1-cp312-cp312-manylinux_2_28_aarch64.whl
Size 3.9 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
535030ed2660ca8a97e4ecbad5742ec6622cda633657659848714420b1f5f5e2
BLAKE2b-256 checksum
How to use checksums
f467cc3724bbdc4f1c031592472628cb5bee261c61032b5052f860b48be55db8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL refloxide-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
Size 2.4 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2ac0b5199860038e1ba39f04a7b36a3b2b4b8753d36cb07064713535097814d6
BLAKE2b-256 checksum
How to use checksums
5fd32101a1867b4c69622db3b1f6a02d0571f15c0ea205b8ca6c85d3e3749ff8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / refloxide-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl

Download URL refloxide-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl
Size 2.5 MB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
b56ae0344858dd8cd60fb5d3da18e31cbea2740ce8526e91acec438084a1fd55
BLAKE2b-256 checksum
How to use checksums
8f04e005c38f49c9b3e7b9e7ce6ff132245990bc21d446664579a15a0e82ab05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.2.1 This release

17 release files

0.1.5

17 release files

0.1.4

4 release files

0.1.3

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page