Skip to main content

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


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.0.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

matrops-0.0.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file matrops-0.0.2.tar.gz.

File metadata

  • Download URL: matrops-0.0.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for matrops-0.0.2.tar.gz
Algorithm Hash digest
SHA256 dc9aaa87b108890f533f615352df0c28e13cfd1fdae57a79aa9cf652146e23b5
MD5 a41ee72a2ee482f4a35eb04f2e9c8a82
BLAKE2b-256 cdaee11536fa5049bb0c34f40a4dede00d5e3157b886ccc3a224a9eedb46463d

See more details on using hashes here.

File details

Details for the file matrops-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: matrops-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for matrops-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6077c40c5936a9a188114bcaee6ed51460264e2598acc66872cab73d657cd228
MD5 b54410616bd830dfe92079ee9a26d428
BLAKE2b-256 e4be8ca8d93923e914e4c2073d7cee9735e9f2c7e01d304996e0a528accfd861

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page