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 | Provenance | Actions |
|---|---|---|---|---|
| pymbend-0.1.0.tar.gz | 3.2 kB | Without provenance | Details for pymbend-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymbend-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pymbend-0.1.0-py3-none-any.whl |
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
|
Security for pymbend 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.