Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Simple module to work with matrices. Division between matrices isn't supported yet.

Important: this package is not maintained anymore.

Examples:

>>> from easymatrix import Matrix

# Create a 2x3 matrix.
>>> a = Matrix([
... [1, 5, 0],
... [2, 0, 3]
... ])
# Output is automatically created to be human-readable.
>>> a
1 5 0
2 0 3

# Define another to operate with.
>>> b = Matrix([
... [-3, -5, 7],
... [0, 9, 1]
... ])

# Arithmetic operations.
>>> c = a + b
>>> c
-2 0 7
2 9 4

>>> d = a - b
>>> d
4 10 -7
2 -9 2

# Multiplication: matrix * matrix.
>>> e = d * c
Traceback (most recent call last):
ValueError: Expected ?x3 and 2x? matrices.

>>> f = Matrix([
... [1, 0],
... [3, -2],
... [0, 5]
... ])
>>> g = d * f
>>> print(g)
34 -55
-25 28

# Matrix * number.
>>> g*2
68 -110
-50 56

# Power.
>>> g**2
2531 -3410
-1550 2159

# Division: matrix / number.
>>> g/10.
3.4 -5.5
-2.5 2.8

Metadata

Release files for easymatrix 1.0.0a1

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

Source distribution (sdist)

Source distribution for easymatrix 1.0.0a1
File Size Uploaded Provenance Actions
easymatrix-1.0.0a1.zip 4.8 kB Without provenance Details for easymatrix-1.0.0a1.zip

Built distribution (wheel)

Table of built distributions (wheels) for easymatrix 1.0.0a1
File Interpreter ABI Platform Actions
easymatrix-1.0.0a1-py2.py3-none-any.whl Python 3, Python 2 none any Details for easymatrix-1.0.0a1-py2.py3-none-any.whl

Total release size: 8.8 kB

Release files / easymatrix-1.0.0a1.zip

Download URL easymatrix-1.0.0a1.zip
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b603ae8136cc4f46f09594405d741bc50b5724c3599b76e8ec483d9d0aff209e
BLAKE2b-256 checksum
How to use checksums
70099dec1e230945acf5d6da092b0196590b973e9e7408311e8432be28300950
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / easymatrix-1.0.0a1-py2.py3-none-any.whl

Download URL easymatrix-1.0.0a1-py2.py3-none-any.whl
Size 4.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f242cc5edaae1715375db79bc334dad0c52389422f9acb17ffb7b9e64f7c6217
BLAKE2b-256 checksum
How to use checksums
f48bb3c0946246d9e8d5c84e38092b333fd592d4415fbd272a5a420311848bb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for easymatrix 1.0.0a1

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
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