Matricia
A simple, straight-forward library to perform mathematical computations in the domain of linear algebra using python.
Features
- 5 New Data types in Python: Vector, Matrix, Point, Line, Plane
- Overloaded dunder methods which allow for the use of normal python arithmetic, logical and comparison operators.
- Straight-forward syntax highly resembling Python's syntax.
- Incredibly fast computations most at O(n) time and space complexity.
- Strong OOP Architecture including things like static methods, class methods, duck typing, and polymorphism.
Installation
Install via pip:
pip install matricia
Quickstart
Using Vectors
from matricia import Vector
v = Vector(1, 2, 3) # < 1, 2, 3 >
u = Vector(x=3, z=5) # < 3, 0 ,5 >
dot_product = u * v # 18
Using Matrices
from matricia import Matrix
m = Matrix([[1, 2, 3],
[4, 5, 6]])
n = Matrix([[15, -4, 0],
[-12, 6, 1.3]])
k = m + n
# [[16, -2, 3],
# [-8, 11, 7.3]]
License
Distributed under the MIT License.
Metadata
Release files for matricia 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| matricia-1.0.0.tar.gz | 26.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| matricia-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.4 kB
Release files / matricia-1.0.0.tar.gz
| Download URL | matricia-1.0.0.tar.gz |
|---|---|
| Size | 26.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
423cd811726a3e15817f9ba656fcd71eaecf99d611a6868e7d105978dfa9ce9f
|
|
BLAKE2b-256 checksum How to use checksums |
df775b85061457e90193a0c4b729000dba3923332f3548c3b033dec890910df1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / matricia-1.0.0-py3-none-any.whl
| Download URL | matricia-1.0.0-py3-none-any.whl |
|---|---|
| Size | 26.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
575883524dbd38748f9ec2d6c2ceb7b6c0b4b35a760e77339b0abb92fcac5f50
|
|
BLAKE2b-256 checksum How to use checksums |
4629a8c27640a7d04507fc856fac15c33546eba90a9f912ddcaf236179d687d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|