A toolkit to simplify working with Nijenhuis and Haantjes tensors
Project description
Nijenhuis toolkit
Symbolic computation of Nijenhuis and Haantjes tensors for integrability analysis of hydrodynamic-type systems.
Features
- Nijenhuis and Haantjes tensor objects in python
- Symbolic computation using SymPy
- Checking of diagonalisability and zero elements
- Easy to read tensor summaries
- Direct LaTeX translation functions for tensors and matrices
Installation
If using pip: pip install nijenhuis-toolkit
Examples
# Define coordinates and a matrix as an operator
u, v = sp.symbols('u v')
L = Operator(
[[v,1],
[0,v]],coords=[u,v])
# Compute the Nijenhuis and Haantjes tensors
N = L.nijenhuis_tensor()
H = L.haantjes_tensor()
# Prouce a tensor summary
print(tensor_summary(N,symbol="N"))
>>> N: 2 components total, 0 non-zero
#Check if the Nijenhuis tensor is identically zero
print(L.is_nijenhuis())
>>> True
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
File details
Details for the file nijenhuis_toolkit-0.1.1.tar.gz.
File metadata
- Download URL: nijenhuis_toolkit-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08fbbc8162a95f213f8381a2b084c4febdc0967746cd7e406d1454c149044870
|
|
| MD5 |
d16a49b7e4351e9ef53b0c3fc18b9033
|
|
| BLAKE2b-256 |
c25a268a4d46c7eb81c2e94065cd7458f6e16fb5dc9e3537e61b2f45eccf40cc
|