Skip to content
A Python Library for Sparse Matrix Orderings
Branch: master
Clone or download
dpo Merge pull request #2 from syarra/hotfix/0.1
Bug in the examples.
Latest commit 8a0118b Mar 10, 2015


PyOrder --- A Library of Sparse Matrix Reordering Methods in Python


  1. NumPy
  2. The Harwell Subroutine Library subroutines MC21 and MC60. More interfaces may be added as needed. Head to for license terms and for obtaining the software. You need to download the double precision real version. Edit site.cfg to specify the location of the source files.
  3. If you plan to read and write matrices in Harwell-Boeing or Rutherford-Boeing format, you will need to install fortranformat, available from PyPi.


For now, just:

python build
python install

To select another Fortran compiler:

python config_fc --fcompiler=<Fortran compiler name> build

For instance:

python config_fc --fcompiler=gfortran build

assuming gfortran is in your PATH.

To see a list of available Fortran compilers and their names:

python config_fc --help-fcompiler


You can test that your installation is working correctly by running the examples. Change to the examples directory and type:

% python
% python
% bunzip2 commanche_dual.rb.bz2
% python commanche_dual.rb
% python commanche_dual.rb
% python commanche_dual.rb

If Matplotlib is installed, some sparsity pattern plots should pop up.

Examining the example scripts is a good idea.



There is a PDF manual in doc/PyOrder.pdf. The html documentation can be generated by changing to the doc directory and issuing make html. Sphinx is required to generate the documentation.

Bitdeli badge
You can’t perform that action at this time.