Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymbend-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

pymbend-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for pymbend-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7f0930198a2ac2f53749671d842c88eca6cf8e202df5f4b4f56b6a48de22235d
MD5 93a7dd886831bb4e00f7a266929fc950
BLAKE2b-256 e3de628270943a00eca6ab4d128fa5a0cb9543a14ade58cee361fa22d79fdcfc

See more details on using hashes here.

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

Hashes for pymbend-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 375185afcfb1f2765552216744ce343e83efa771bb7d5aaf2d8bc54839fbe22b
MD5 f3f022eeb9dbfb4d55f8fc215caa3cb5
BLAKE2b-256 bf3121a79e57620cbcfd426fb93b7bc1287dc1bb5eb3a8223d93732be52d62e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page