Matrix Utils is a lightweight Python library for creating and working with structured matrices.
It supports identity, tri-diagonal, tri-band, diagonal, symmetric, Toeplitz, Hankel, and circulant matrices — all in a clean object-oriented style.
- Object-oriented
Matrixclass - Add, multiply, and transpose matrices
- Generate:
- Identity matrix
- Diagonal, symmetric
- Tri-diagonal, tri-band
- Toeplitz, Hankel, Circulant
- Utility functions:
- Check for symmetry
- Check for Toeplitz
pip install matrixxfrom matrixx import Matrix, generate_tridiagonal, is_toeplitz
m = generate_tridiagonal(4)
print(m)
print(m.transpose())
print(m.is_symmetric())
print(is_toeplitz(m))matrixx/
├── matrixx/
│ ├── core.py
│ └── __init__.py
├── tests/
├── setup.py
├── LICENSE
└── README.md
This project is licensed under the MIT License.
© 2024 Kranthi • Contact: [email protected]