Skip to main content

A 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

matrix-utils/
├── matrix_utils/
│   ├── 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.0.tar.gz (2.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.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: matrixx-0.1.0.tar.gz
  • Upload date:
  • Size: 2.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.0.tar.gz
Algorithm Hash digest
SHA256 fa8bd378b22afc5243f7557ace88ef80cae22e5289f15788d087c7da0cfdbf9d
MD5 1d69a61a0a23a6428780c552e0381e14
BLAKE2b-256 4d1875b16f788b26ff45b7832a414d549a243f38f5945522491f85caa652591b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: matrixx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff88638c6b5c9bcf315a66974ea8fe49f1e0a780ba332e73c8619bbe0ac69b3a
MD5 50b3322da54b0a9e4009b266e71bdacf
BLAKE2b-256 d469d0452edd0b0e934b74fe6a11f92cb422a62780374bac0099358ef9aab7ef

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