The Python Library for managing your matrix (◕‿↼)
Project description
MATRIX Github || PyPi
The Python Library for managing your matrix (◕‿↼)
Use the package in your project
Install the package
pip install matrix_chandramdutta
Using the package
import matrix_chandramdutta.matrix as matrix
matrix = get_matrix_input(3,5)
Methods
Getting a Matrix from User Input
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
Adding two matrix
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.
Subtracting two matrix
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
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.
Print a matrix
print_matirx(matrix: list)
This method allows you to easily print the matrix
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
Built Distribution
Hashes for matrix_chandramdutta-1.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 549a7646e9489f3f167cd2061ab007195d2d346a57acd72a5efe467e7200a3d9 |
|
MD5 | 2e3fdfc1d540f0476cde2e2062844117 |
|
BLAKE2b-256 | 61552169874a93ca36f03363c8911f1dfa9602b83688fddf9f062d3e126db56f |
Hashes for matrix_chandramdutta-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95a3c230aca1597f1a7705029a23f9c17cf1b7f27b84635af3ccc9e954518c33 |
|
MD5 | 60123c1441fd9a3522dfbad8d62ed7d0 |
|
BLAKE2b-256 | 9c671924dd21fba9be4358867aac18cd79aeaf08415a0b395f3418b05c0873cb |