Skip to main content

The Python Library for managing your matrix (◕‿↼)

Project description

MATRIX [Github]

The Python Library for managing your matrix (◕‿↼)

Methods

Getting a Matrix from User Input

def get_matrix_input(rows: int, columns: int) -> list:

This method takes in the number of rows and columns and returns a matrix of the given size. It also prompts the user for output


Getting a Zero Matrix

get_matrix_zero(rows: int, columns: int) -> list

This method takes in the number of rows and columns and returns a matrix of the given size. It also fills the matrix with zeros for your further operations


add_two_matrix(matrix_one: list, matrix_two: list) -> list

This method takes in two matrices and returns the sum of the two matrices.

Warning The matrices must be of the same size or else unexpected results may occur.


subtract_two_matrix(matrix_one: list, matrix_two: list) -> list

This method takes in two matrices and returns the difference of the two matrices.

Warning The matrices must be of the same size or else unexpected results may occur.


multiply_two_matrix(matrix_one: list, matrix_two: list) -> list

This method takes in two matrices and returns the product of the two matrices.

Warning The matrices must satisfy the matrix multiplication rule or else unexpected results may occur.


Chandram Dutta © 2022

Note This is for a university project. Might not be maintained in future.

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

matrix_chandramdutta-1.0.0.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

matrix_chandramdutta-1.0.0-py3-none-any.whl (3.1 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