Skip to main content

A package to project onto quadratic hypersurface.

Project description

codecov pipeline status PyPI PyPI - License Conda Documentation

quadproj

A simple library to project a point onto a quadratic surface, or quadric.

How to install quadproj?

It is a one-liner!

python3 -m pip install quadproj

See installation page for further information and the requirements.

Documentation

The documentation is hosted on GitLab: https://loicvh.gitlab.io/quadproj

How does quadproj works?

The projection is obtained by computing exhaustively all KKT point from the optimization problem defining the projection. The authors of [1] show that for non-cylindrical central quadrics, the solutions belong to the KKT points that consist in the intersection between:

  • a unique root of a nonlinear function on a specific interval;
  • a set of closed-form points.

Either set can be empty but for a nonempty quadric, at least one is nonempty and contains (one of the) projections.

The full explanation is provided in [1].

How to use quadproj?

See the quickstart page or the API documentation.

Dependencies

See requirements.txt.

[1]

(2021) L. Van Hoorebeeck, P.-A. Absil and A. Papavasiliou, “Projection onto quadratic hypersurfaces”, submitted. (preprint, abstract/BibTex)

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

quadproj-2.0.0.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

quadproj-2.0.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file quadproj-2.0.0.tar.gz.

File metadata

  • Download URL: quadproj-2.0.0.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for quadproj-2.0.0.tar.gz
Algorithm Hash digest
SHA256 89322ec5ab27b00ce510f8a181eeee679c42be2288600fa4fdace5daee7ad422
MD5 455b25173a46f5b380779ac52018ca4d
BLAKE2b-256 4192487c584e26bf5fb368a1314463fbf629084e93d9c98736b8c40d4463f935

See more details on using hashes here.

File details

Details for the file quadproj-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: quadproj-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for quadproj-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9822d116368e3da6a5483b6c1ae743c289854a45ec0fe7278989cb48d123bc19
MD5 0e02a6b9f3cae148312017f9b830d1f6
BLAKE2b-256 12174e4770450f51ca4f3fa3d3ba5ff1f827d290cbd527309de37c314bbd1d4c

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