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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
matricia-1.0.0.tar.gz
(26.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
matricia-1.0.0-py3-none-any.whl
(26.4 kB
view details)
File details
Details for the file matricia-1.0.0.tar.gz.
File metadata
- Download URL: matricia-1.0.0.tar.gz
- Upload date:
- Size: 26.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
423cd811726a3e15817f9ba656fcd71eaecf99d611a6868e7d105978dfa9ce9f
|
|
| MD5 |
fb62619caa39f0a32ff7f8cad3267406
|
|
| BLAKE2b-256 |
df775b85061457e90193a0c4b729000dba3923332f3548c3b033dec890910df1
|
File details
Details for the file matricia-1.0.0-py3-none-any.whl.
File metadata
- Download URL: matricia-1.0.0-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
575883524dbd38748f9ec2d6c2ceb7b6c0b4b35a760e77339b0abb92fcac5f50
|
|
| MD5 |
9fa77c0c74d60adb815804ac9b689322
|
|
| BLAKE2b-256 |
4629a8c27640a7d04507fc856fac15c33546eba90a9f912ddcaf236179d687d7
|