Skip to main content

Lightweight matrix utility library

Project description

Matrix Utils

Test Status PyPI Python License

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.


✨ Features

  • Object-oriented Matrix class
  • 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

📦 Installation

pip install matrixx

🚀 Usage

from matrixx import Matrix, generate_tridiagonal, is_toeplitz

m = generate_tridiagonal(4)
print(m)

print(m.transpose())
print(m.is_symmetric())

print(is_toeplitz(m))

📂 Project Structure

matrixx/
├── matrixx/
│   ├── core.py
│   └── __init__.py
├── tests/
├── setup.py
├── LICENSE
└── README.md

📄 License

This project is licensed under the MIT License.
© 2024 Kranthi • Contact: kdevprofile@gmail.com

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

matrixx-0.1.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

matrixx-0.1.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file matrixx-0.1.3.tar.gz.

File metadata

  • Download URL: matrixx-0.1.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for matrixx-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b37e0e751ed2a475ca9fb89ebe7e006537ffc5016996196b3c6e2e74cb86f645
MD5 db88a9ded5cabdc4ddc68bacb7f73caf
BLAKE2b-256 9f620201f51c2564a6f36d4ca213fc8bce92f7a6558da5b1a9310f1fc82dfe60

See more details on using hashes here.

File details

Details for the file matrixx-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: matrixx-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for matrixx-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9325c1c5e0801f9deab2900aedefbcc1e577adf63bba87420552af086ecbf686
MD5 996433ee46ee2f967ccc54829aa7b563
BLAKE2b-256 76e8feac3672130193bab31cebbb82dbac8be3a3024eb9bacb2f5e91c12dbc02

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