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
, and to compute the families of vertex-disjoint paths of each corner minor of
, where
is the exponent of
-
basic_examples.py contains few basic examples
-
mat_call_py_example.m is a Matlab example of using Python functions from utils.py
Install
The simplest way to install TpTnOsc is through pip or conda:
pip install TpTnOsc
# or
conda install --channel "yoramzarai" TpTnOsc
Alternately, TpTnOsc can be installed from github:
git clone https://github.com/yoramzarai/TpTnOsc.git
cd TpTnOsc
python setup.py install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file TpTnOsc-1.2.tar.gz.
File metadata
- Download URL: TpTnOsc-1.2.tar.gz
- Upload date:
- Size: 14.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fdedd766cc7d3997dbdf98473f508c43e1829d20cc1013803bcf8762ec54257
|
|
| MD5 |
4293cca61dbc0ef60f14e6991812a31f
|
|
| BLAKE2b-256 |
7c2e0d3767db0277081c3edfdbf6d85fdf4237bc64fba6853d13793b2e58dcd6
|
File details
Details for the file TpTnOsc-1.2-py3-none-any.whl.
File metadata
- Download URL: TpTnOsc-1.2-py3-none-any.whl
- Upload date:
- Size: 15.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f607df3a0f0a3a87b08c341e39a0d00178e1819d71522831ee594bafc91376a
|
|
| MD5 |
464fb540bbd381c3fee132bd79aad3f3
|
|
| BLAKE2b-256 |
8a186dd65d0370c7f828470f5ddd035075306df8236287c47ca7a4a4b5d9fd05
|