https://github.com/tom-the-bomb/matrixflow
A rich library with implementations for mathematical matrices and vectors and their operations
https://github.com/tom-the-bomb/matrixflow
library linear-algebra math matrices python vectors
Last synced: 6 months ago
JSON representation
A rich library with implementations for mathematical matrices and vectors and their operations
- Host: GitHub
- URL: https://github.com/tom-the-bomb/matrixflow
- Owner: Tom-the-Bomb
- License: mit
- Created: 2024-09-21T00:45:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-27T14:34:31.000Z (6 months ago)
- Last Synced: 2025-03-27T15:40:13.254Z (6 months ago)
- Topics: library, linear-algebra, math, matrices, python, vectors
- Language: Python
- Homepage: https://matrixflow.readthedocs.io
- Size: 98.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Matrixflow
[](https://pepy.tech/project/matrixflow)
A rich library with implementations for mathematical **matrices** and **vectors** and their operations
Refer to the documentation over [here](https://matrixflow.readthedocs.io/en/latest/index.html)
## Installation
Python 3.10 or higher is required
```bash
py -m pip install matrixflow
```or from github
```bash
py -m pip install git+https://github.com/Tom-the-Bomb/matrixflow.git
```## Examples
```py
from matrixflow import Matrix, VectorA = Matrix([
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
])
print(A.det()) # calculates the determinant
A.transpose() # transposes `A` in placeu = Vector([1, 2, 3])
v = Vector([4, 5, 6])
print(u * v) # calculates the dot product
```Further examples can be found over at the documentation [here](https://matrixflow.readthedocs.io/en/latest/examples.html)
## Highlight Features
- **Matrices**
- Basic operations: addition, subtraction, scalar/matrix multiplication and other basic matrix functions
- Linear transformations
- determinant
- Linear system of equations:
- Gaussian elimination: row echelon & reduced row echelon forms
- Inverse
- and many more!- **Vectors**
- Basic operations: addition, subtraction, scalar/dot/cross products and other basic vector functions
- polar/spherical and cartesian conversions
- projection, rejection
- and many more!