Skip to main content

Lightweight matrix utility library

Project description

Matrix Utils

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 matrix_utils 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.1.tar.gz (3.7 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.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: matrixx-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 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.1.tar.gz
Algorithm Hash digest
SHA256 ee9dd0ea99ab72e5d17c19fd5c5571a3ac6cc0800e14d966c2046192d0c59620
MD5 c5fda0139ef200e201c95bbb198fe2c6
BLAKE2b-256 e6266cde0e240cb1774c8bfacaf7b77570dc7fa20c9b1bd6e8559bc836991553

See more details on using hashes here.

File details

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

File metadata

  • Download URL: matrixx-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a55569051371886412497c5c64de6b3944360100d81daaa157f318d737e8424
MD5 d0a3b44a6fc96ea54f74917316d9e746
BLAKE2b-256 530f0c3cf2efd51ed41d335794cabc1fc0f47c8174083c7439a74cd1ff258009

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