Package for matrix and vector operations in python
Project description
| |
_ __ ___ __ _| |_ _ __ ___ _ __ ___
| '_ ` _ \ / _` | __| '__/ _ \| '_ \/ __|
| | | | | | (_| | |_| | | (_) | |_) \__ \
|_| |_| |_|\__,_|\__|_| \___/| .__/|___/
| |
|_|
Matrops
This is a python package for matrix and vector operations like, addition, subtraction, multiplication, scale and transpose.
More options like graphics for vectors, calculating the angle beetween to vectors and more are comming soon.
Table of contents
- Installation
- Example
- Coming soon
- Contributors
Installation
pip install matrops
python -m matrops
Example
from matrops.matrix import Matrix, MatrixOps
# create 2 matrices
matrix_1 = Matrix([[1, 2, 3, 4], [5, 6, 7, 8]])
matrix_2 = Matrix([[2, 2, 2, 2], [3, 3, 3, 3]])
if __name__ == "__main__":
# Add 2 matrices
added = MatrixOps.add(matrix_1, matrix_2)
# Scale matrix with 2
matrix_1.scale(2)
# Transpose matrix
transposed = MatrixOps.tranpose(matrix_1)
# Read documentation for more usage examples
Coming soon
- Detailed calculations
- Possibility to calculate the angle beetween 2 vectors
- Vector Product
- Show vectors in a graphical interface
Contributors
- Leonard Becker
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
matrops-0.1.2.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file matrops-0.1.2.tar.gz
.
File metadata
- Download URL: matrops-0.1.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6df0518a20d5093912dc75e36233a096f34405e95cd80927ea048d1a4064f52 |
|
MD5 | a6c2b7658df395cac0767447412c39ba |
|
BLAKE2b-256 | 5bdb8dc007c7f36f7a6721a1a1c934557104e7db64ca8ba48bad0a404f9e9f8f |
File details
Details for the file matrops-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: matrops-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b19cd0a952541c2818f0658ac1cfe19129b2456f9f06a605535c3ad04c7c38c8 |
|
MD5 | 94acbfe372c0cbe84b5e7d634655b014 |
|
BLAKE2b-256 | 18e395158be55b1bf548734a8c40add5541e7ebf6ba97f2e5cdf09d612833888 |