Skip to main content

py-Matrix-123

Installation

To install with pip, run: pip install py-Matrix-123

Basic Usage

You can retrieve matrix dimensions, their trace, and performs matrix addition, subtraction, multiplication and scalar multiplication.

requirements: python3

Here's an example for regular matrices

from pymatrix123 import Matrix

"""    
    matrix A:
            1 
            3 
            4
            5

    matrix B:
            1
            0
            2
            5
"""

matrixA = Matrix([[1], [3], [4], [5]])
matrixB = Matrix([[1], [0], [2], [5]])
print(matrixA + matrixB)

Here's an example for square matrices

from pymatrix123 import SquareMatrix

"""    
    matrix A:
            1 2
            3 4

    matrix B:
            3 4
            2 1
"""
        
matrixA = SquareMatrix([[1, 2], [3, 4]])
matrixB = SquareMatrix([[4, 3], [2, 1]])
print(matrixA.trace())
print(matrixA.get_dim())
print(matrixB.trace())
print(matrixB.get_dim())
print(matrixA * matrixB)

Reference

Setup Command Notes
install pip install pymatrix123
Creating a CLI Command Notes
import import pymatrix123
Call Matrix(A) Turns the current list into a matrix object.
Call SquareMatrix(B) Turns the current list into a matrix object.

License

Licensed under the The Python Packaging Authority License.

Metadata

Release files for py-Matrix-123 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-Matrix-123 0.0.3
File Size Uploaded Provenance Actions
py-Matrix-123-0.0.3.tar.gz 3.3 kB Without provenance Details for py-Matrix-123-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-Matrix-123 0.0.3
File Interpreter ABI Platform Actions
py_Matrix_123-0.0.3-py3-none-any.whl Python 3 none any Details for py_Matrix_123-0.0.3-py3-none-any.whl

Total release size: 7.5 kB

Release files / py-Matrix-123-0.0.3.tar.gz

Download URL py-Matrix-123-0.0.3.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4b4e65d57d48e1be69a0ade6034d4731361073034550fe1fa63dc029ff42a02c
BLAKE2b-256 checksum
How to use checksums
4d0440f6bf4a79928e9c7423853a01ce3599fa851e67d1c96445e1fca7bebe40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.2.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.0

Release files / py_Matrix_123-0.0.3-py3-none-any.whl

Download URL py_Matrix_123-0.0.3-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74d6cb800107e39d036a500bde0cf14c084a3f1c882cfb40ffaccc25294e02ca
BLAKE2b-256 checksum
How to use checksums
cd3343852928eb354ddf7abfe99e87c02a3f5783d9fb9c480c6771879a4504fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.2.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.0

Security for py-Matrix-123 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page