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.0a0.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: quadproj-2.0.0a0.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.0a0.tar.gz
Algorithm Hash digest
SHA256 4ab93cca3b2b56f285e69af23c2401879540a7b170f4296cbd7ad5c7fa05ba71
MD5 d1dea0202676a1754f56fb20d93504ef
BLAKE2b-256 e6298f6f52aa7dac558b8463eb32d11fe9dfde560326f52c07dfefd0080a3794

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quadproj-2.0.0a0-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.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfd6d4f75fb76651483f173f2de6bacacd880418e796545a3d58cc52bafc0d9d
MD5 4ff5822c0c72210a6850819381d55954
BLAKE2b-256 e4422e9be323fcceeeb037586f18c915f2028a04d03603d7911a34f610eb56a1

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