Shared numerical and vector algebra toolkit for MNPBEM-Python.
Project description
mnpbem-misc
mnpbem-misc provides shared numerical utilities used across MNPBEM-Python submodules.
Features
- Physical unit conversions between photon energy and wavelength.
- Vector norms and normalization utilities with MATLAB-compatible behavior.
- Tensor-aware linear algebra helpers (
matmul,matcross,inner,outer,spdiag).
Mathematical Formulations
Photon energy-wavelength conversion:
Euclidean vector norm:
Normalization:
Implementation
- Unit conversion utilities:
src/mnpbem_misc/units.py - Vector operations:
src/mnpbem_misc/vector.py - Linear algebra helpers:
src/mnpbem_misc/linalg.py
Dependencies
numpy>=1.24
Installation
pip install mnpbem-misc
Example
Runnable example:
examples/basic_usage.py
Run:
python examples/basic_usage.py
Author
- GALIH RIDHO UTOMO
- g4lihru@students.unnes.ac.id
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mnpbem_misc-0.1.9.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mnpbem_misc-0.1.9.tar.gz.
File metadata
- Download URL: mnpbem_misc-0.1.9.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
390721464e4a652a6918a50f0e5b2cc3bea2182af8827aeaeb821a62260d8e69
|
|
| MD5 |
d171449b9fabfd082451fbe58c44d7f4
|
|
| BLAKE2b-256 |
89b64ae172f5e3a92a63ef87f6950c4e596cc18aa589ad05f0030b1f83ef2926
|
File details
Details for the file mnpbem_misc-0.1.9-py3-none-any.whl.
File metadata
- Download URL: mnpbem_misc-0.1.9-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b0155df5e70559274af44a875af0c2b1c85cac075746dbb74797c49fcf2fb40
|
|
| MD5 |
95b955485343fd9a558aeefb4eb0cf62
|
|
| BLAKE2b-256 |
cccf0153d19521734ce3d0ff90a6edb358cd4fff489173c4ebee05f734829928
|