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.8.tar.gz
(4.3 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.8.tar.gz.
File metadata
- Download URL: mnpbem_misc-0.1.8.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0612be24ba96b3574b5e0f0cd27f125b11ab0e95ff736d30cea9dbdcf0c63290
|
|
| MD5 |
d038aa9f0fe095d0b0bb80e39c5ac46f
|
|
| BLAKE2b-256 |
4afed589ab1535350e7228028f2b4ae37ff65ce8d8137d7e2429df44863d4820
|
File details
Details for the file mnpbem_misc-0.1.8-py3-none-any.whl.
File metadata
- Download URL: mnpbem_misc-0.1.8-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff051e3943e454ee0c5ce1adfcb367a21da37bbc8833a6276b0e2d1af2a22cad
|
|
| MD5 |
73d164c63bc1d976345b0061ffa0c9c5
|
|
| BLAKE2b-256 |
80c049eafce91ac3826151045fdede6a10e6c56b35a99ce45c80a4774f53bd95
|