Skip to content

PythonOptimizers/qr_mumps.py

Repository files navigation

qr_mumps.py

Build Status

Cython/Python inferface to qr_mumps (A multithreaded multifrontal QR solver).

It supports all four types (single real, double real, single complex and double complex).

Dependencies

For the Python version:

For the Cython version, include everything needed for the Python version and add:

If you intend to generate the documentation:

  • Sphinx
  • sphinx_bootstrap_theme.

To run the tests:

  • pytest.

All previous dependencies may be installed using pip.

Optional dependencies

qr_mumps.py provides facilities for sparse matrices coming from the CySparse library. If you want to use these facilities, set the location of the CySparse library in your site.cfg file.

Installation

  1. You need to install qr_mumps. Follow instructions on their website. If you are under OS X, a Homebrew formula is available. Follow the instructions to install Homebrew. Then, qr_mumps and its dependencies can be installed automatically in /usr/local by typing

    brew tap homebrew/science

    brew install qr_mumps

  2. Clone this repo

  3. Copy site.template.cfg to site.cfg and modify site.cfg to match your configuration

  4. Install qr_mumps.py

    • Python version

      python setup.py install

    • Cython version

      python generate_code.py python setup.py build python setup.py install

Running tests

py.test tests

Running examples

TODO:

  • Add refine method
  • Add a Q-less derived class
  • Update examples
  • Update doc-strings
  • ensure all code is PEP8 and PEP257 compliant

License

LGPLv3.0

Releases

No releases published

Packages

No packages published