The Matrice_math package facilitates fundamental mathematical operations on matrices and determinants. It supports a range of operations, such as addition, subtraction, multiplication (both matrix and scalar), and provides functionalities for computing the minor, cofactor, adjoint, determinant, and inverse of a given matrix
Installation can be done in the following 3 methods :
- Command Prompt :
- Type in
pip install matrix_math
- Type in
- PyPi :
- Open link in and browser and install
- Github :
- Open link in and browser and install
If you are using method 2 or method 3, paste the installed repository in your site_packages folder
This package contains the following functions which can be used after importing by import matrix_math
:
- Addition of two matrices :
matrice_math.add(matrix_1, matrix_2)
- Subtraction of two matrices :
matrice_math.subtract(matrix_1, matrix_2)
- Muliplication of two matrices :
matrice_math.matrix_mult(matrix_1, matrix_2)
- Scalar multiplication :
matrice_math.scalar_mult(number, matrix)
- Minor of a certain index in a matrix :
matrice_math.minor(matrix, (i,j))
- Cofactor of a certain index in a matrix :
matrice_math.cofactor(matrix, (i,j))
- Minor matrix of a given matrix :
matrice_math.minor_mat(matrix)
- Cofactor matrix of a given matrix :
matrice_math.cofactor_mat(matrix)
- Transpose of a given matrix :
matrice_math.transpose(matrix)
- Adjoin of a given matrix :
matrice_math.adjoint(matrix)
- Determinant of a given matrix :
matrice_math.determinant(matrix)
- Inverse of a given matrix :
matrice_math.inverse(matrix)
MIT License
Copyright (c) 2022 ISHAAN SAWANT
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.