Bending non-positive-definite matrices to positive-definite
Project description
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.
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
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 pymbend-0.1.0.tar.gz.
File metadata
- Download URL: pymbend-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f0930198a2ac2f53749671d842c88eca6cf8e202df5f4b4f56b6a48de22235d
|
|
| MD5 |
93a7dd886831bb4e00f7a266929fc950
|
|
| BLAKE2b-256 |
e3de628270943a00eca6ab4d128fa5a0cb9543a14ade58cee361fa22d79fdcfc
|
File details
Details for the file pymbend-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pymbend-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
375185afcfb1f2765552216744ce343e83efa771bb7d5aaf2d8bc54839fbe22b
|
|
| MD5 |
f3f022eeb9dbfb4d55f8fc215caa3cb5
|
|
| BLAKE2b-256 |
bf3121a79e57620cbcfd426fb93b7bc1287dc1bb5eb3a8223d93732be52d62e4
|