Skip to main content

Tools for analyzing TP, TN and OSC matrices

Project description

TpTnOsc

A Python package for analyzing totally positive (TP), totally non-negative (TN), and oscillatory (OSC) matrices.

The tool contains many functions and classes that can perform the following:

  • compute matrix minors and multiplicative compound matrices
  • compute and display the SEB factorization of an Invertible TN (I-TN) matrix
  • test if a matrix is TP, TN, I-TN, or OSC
  • compute the number of (cyclic and non-cyclic) sign variations in a vector
  • compute the exponent of an oscillatory matrix
  • compute and display families of vertex-disjoint paths corresponding to lower-left and upper-right corner minors of oscillatory matrices

See notebook for details and examples.

Modules

  • utils.py contains several functions related to the number of sign variations in a vector, multiplicative compound matrices, SEB factorization, planar networks and other TP/TN/OSC matrices related functions.
  • osc_exp.py contains the functions and classes to compute the exponent of an oscillatory matrix and the corresponding families of vertex-disjoint paths.

Examples

  • osc_exp_examples.ipynb contains examples of using the triangle graph (derived from the planar networks of an SEB factorization) to deduce the exponent of an oscillatory matrix A, and to compute the families of vertex-disjoint paths of each corner minor of A^r, where r is the exponent of A

  • basic_examples.py contains few basic examples

  • mat_call_py_example.m is a Matlab example of using Python functions from utils.py

Install

Install using pip: pip install TpTnOsc.

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

TpTnOsc-1.1.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TpTnOsc-1.1-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file TpTnOsc-1.1.tar.gz.

File metadata

  • Download URL: TpTnOsc-1.1.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for TpTnOsc-1.1.tar.gz
Algorithm Hash digest
SHA256 455668c8a51d6d5a74869c638b0a0ab02f62bac6e31f78a2ad8b7d32e595c058
MD5 53d8e4dcc36914b17f9870e3c0c10484
BLAKE2b-256 fbe09cf1900b785350766eec055f43e1415542dcc4ac1d788aed3e607ab3f2e1

See more details on using hashes here.

File details

Details for the file TpTnOsc-1.1-py3-none-any.whl.

File metadata

  • Download URL: TpTnOsc-1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for TpTnOsc-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d880d442b4a8abf9163d5e60e7440e3a5290908f1fd4850626a4b4397483ae4a
MD5 17c2f3e46983b720e9aeabbcf1d0946a
BLAKE2b-256 c4188ed8e2c19f9600517cfc7ef25503dca5725a10b4fa2f9d081a777bb81de4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page