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.1.2.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

matrops-0.1.2-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

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