Skip to main content

passagemath: Combinatorial matrix recognition

passagemath is open source mathematical software in Python, released under the GNU General Public Licence GPLv2+.

It is a fork of SageMath, which has been developed 2005-2026 under the motto “Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, and MATLAB”.

The passagemath fork uses the motto “Creating a Free Passage Between the Scientific Python Ecosystem and Mathematical Software Communities.” It was created in October 2024 with the following goals:

Moreover, the passagemath project:

  • provides a stable, frequently updated version of the Sage distribution,

  • integrates additional mathematical software, notably Macaulay2, a full set of GAP packages, and the Combinatorial Matrix Recognition library,

  • curates a library of Sage user packages.

Full documentation is available online.

passagemath attempts to support and provides binary wheels suitable for all major Linux distributions and recent versions of macOS.

Binary wheels for native Windows (x86_64, ARM) are are available for a subset of the passagemath distributions. Use of the full functionality of passagemath on Windows currently requires the use of Windows Subsystem for Linux (WSL) or virtualization.

The supported Python versions in the passagemath-10.8.x series are 3.11.x-3.14.x; the passagemath-10.10.x series is adding support for Python 3.15.

About this pip-installable distribution package

This pip-installable distribution passagemath-cmr is a small optional distribution for use with passagemath-modules and passagemath-graphs.

It provides a Cython interface to the CMR library, which implements recognition and decomposition algorithms for:

  • Totally Unimodular Matrices

  • Network Matrices

  • Complementary Totally Unimodular Matrices

  • (Strongly) Equimodular and Unimodular Matrices

  • Regular Matroids

  • Graphic / Cographic / Planar Matrices

  • Series-Parallel Matroids

Examples

$ pipx run --spec "passagemath-cmr[test]" ipython

In [1]: from passagemath_cmr import *

In [2]: from sage.matrix.matrix_cmr_sparse import Matrix_cmr_chr_sparse

In [3]: M = Matrix_cmr_chr_sparse(MatrixSpace(ZZ, 3, 3, sparse=True), [[1, 0, 1], [0, 1, 1], [1, 2, 3]]); M
Out[3]:
[1 0 1]
[0 1 1]
[1 2 3]

In [4]: M.is_unimodular()
Out[4]: True

In [5]: M.is_strongly_unimodular()
Out[5]: False

Development

$ git clone --origin passagemath https://github.com/passagemath/passagemath.git  # or use your fork
$ cd passagemath
passagemath $ ./bootstrap
passagemath $ source ./.homebrew-build-env         # on macOS when homebrew is in use
passagemath $ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/wsl/lib  # on WSL
passagemath $ export PIP_CONSTRAINT="$(pwd)/constraints_cmr.txt"
passagemath $ export PIP_BUILD_CONSTRAINT="$(pwd)/constraints_cmr.txt"
passagemath $ echo "passagemath-categories @ file://$(pwd)/pkgs/sagemath-categories" >> constraints_cmr.txt
passagemath $ echo "passagemath-modules @ file://$(pwd)/pkgs/sagemath-modules" >> constraints_cmr.txt
passagemath $ python3 -m venv cmr-venv
passagemath $ source cmr-venv/bin/activate
(cmr-venv) passagemath $ pip install -v -e pkgs/sagemath-cmr        \
                                        -e pkgs/sagemath-modules    \
                                        -e pkgs/sagemath-categories

Modularized use:

(cmr-venv) passagemath $ pip install -v passagemath-repl
(cmr-venv) passagemath $ sage
... sage.all is not available ...
sage: from passagemath_modules import *
sage: matroids.Uniform(3, 4)
U(3, 4): Matroid of rank 3 on 4 elements with circuit-closures
{3: {{0, 1, 2, 3}}}

In plain Python:

(cmr-venv) passagemath $ python3
>>> from passagemath_modules import *
>>> matroids.Uniform(3, 4)
U(3, 4): Matroid of rank 3 on 4 elements with circuit-closures
{3: {{0, 1, 2, 3}}}

For full functionality of Sage:

(cmr-venv) passagemath $ pip install -v passagemath-standard
(cmr-venv) passagemath $ sage
sage: matroids.Uniform(3, 4)
U(3, 4): Matroid of rank 3 on 4 elements with circuit-closures
{3: {{0, 1, 2, 3}}}

Metadata

Release files for passagemath-cmr 10.8.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for passagemath-cmr 10.8.15
File Actions
passagemath_cmr-10.8.15-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for passagemath_cmr-10.8.15-cp314-cp314t-win_amd64.whl
passagemath_cmr-10.8.15-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for passagemath_cmr-10.8.15-cp314-cp314-win_amd64.whl
passagemath_cmr-10.8.15-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for passagemath_cmr-10.8.15-cp313-cp313-win_amd64.whl
passagemath_cmr-10.8.15-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for passagemath_cmr-10.8.15-cp312-cp312-win_amd64.whl
passagemath_cmr-10.8.15-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for passagemath_cmr-10.8.15-cp311-cp311-win_amd64.whl

Total release size: 15.3 MB

Release files / passagemath_cmr-10.8.15-cp314-cp314t-win_amd64.whl

Download URL passagemath_cmr-10.8.15-cp314-cp314t-win_amd64.whl
Size 3.2 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
1903a1181e73dffed6868743ad82878c7e36e92a2bc77e6b8fae2662e4cc2cdf
BLAKE2b-256 checksum
How to use checksums
ab33069545b6a7a47cb809f86adf530a1151bce4c628a3861ea7c06b3a9142f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / passagemath_cmr-10.8.15-cp314-cp314-win_amd64.whl

Download URL passagemath_cmr-10.8.15-cp314-cp314-win_amd64.whl
Size 3.1 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
3a836483735d3a237793975b1bfb722af60f6fb7ed4ebb77370915ad500e0e7f
BLAKE2b-256 checksum
How to use checksums
2ce202333f79c8a3e99078128a11fe2145a717ad1fa0a05b7e50ab41616bd9dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / passagemath_cmr-10.8.15-cp313-cp313-win_amd64.whl

Download URL passagemath_cmr-10.8.15-cp313-cp313-win_amd64.whl
Size 3.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
e01cdd1b1a2952f4d84439d85bda26f0d683382039b1df3f85c3f2817a587936
BLAKE2b-256 checksum
How to use checksums
028f94bfa3edc38fb786a11282c44f53fc64798caaf0c337646d98628a89a78b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / passagemath_cmr-10.8.15-cp312-cp312-win_amd64.whl

Download URL passagemath_cmr-10.8.15-cp312-cp312-win_amd64.whl
Size 3.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
39f094cb15eee72c2d5d555adc3c8b522554807303a010e4b38cbb86ed5f186e
BLAKE2b-256 checksum
How to use checksums
f707d19f72203df9329df69e9577f0d35c9570189688eb343ce9d7dca167bcc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / passagemath_cmr-10.8.15-cp311-cp311-win_amd64.whl

Download URL passagemath_cmr-10.8.15-cp311-cp311-win_amd64.whl
Size 3.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
0f0d2bc1866622cca032b29c2efeef728c252d70fa1861e535eb8ad6c40b2d3c
BLAKE2b-256 checksum
How to use checksums
915d67f2808dce22d2ec6addc9cafe2e5a639fedd3a8c242675e0a8afc9178a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for passagemath-cmr 10.8.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

10.8.15 This release

5 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page