pymbend
Description
mbend is an "R package for bending non-positive-definite matrices to positive-definite".
This is a simple port of mbend to Python, with the goal of improving computation time.
Some naive timings are below:
| Matrix size | mbend time [s] |
pymbend time [s] |
|---|---|---|
| 100 | 0.89 | 0.85 |
| 200 | 13.8 | 4.4 |
| 500 | 1370.6 | 36.7 |
These were made on a 2021 Intel MacBook Pro.
In addition, it adds the ability to bend a matrix ($A$) to satisfy a generalized Rayleigh quotient inequality: $$0 \leq \frac{\beta^\intercal A \beta}{\beta^\intercal B \beta} \leq 1$$
Installation
pip install git+https://github.com/zietzm/pymbend
License
pymbend is distributed under the terms of the MIT license.
Metadata
Release files for pymbend 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymbend-0.1.0.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymbend-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / pymbend-0.1.0.tar.gz
| Download URL | pymbend-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f0930198a2ac2f53749671d842c88eca6cf8e202df5f4b4f56b6a48de22235d
|
|
BLAKE2b-256 checksum How to use checksums |
e3de628270943a00eca6ab4d128fa5a0cb9543a14ade58cee361fa22d79fdcfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.20
|
Release files / pymbend-0.1.0-py3-none-any.whl
| Download URL | pymbend-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
375185afcfb1f2765552216744ce343e83efa771bb7d5aaf2d8bc54839fbe22b
|
|
BLAKE2b-256 checksum How to use checksums |
bf3121a79e57620cbcfd426fb93b7bc1287dc1bb5eb3a8223d93732be52d62e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.20
|