#MatrixOperations
*NOTE:This package will work only if they are compatible.
zeros_matrix(rows, cols): Creates a matrix filled with zeros. :param rows: the number of rows the matrix should have :param cols: the number of columns the matrix should have
:return: list of lists that form the matrix
def identity_matrix(n): Creates and returns an identity matrix. :param n: the square size of the matrix
:return: a square identity matrix
def copy_matrix(M): Creates and returns a copy of a matrix. :param M: The matrix to be copied
:return: A copy of the given matrix
def print_matrix(M, decimals=3): Print a matrix one row at a time :param M: The matrix to be printed
def transpose(M): Returns a transpose of a matrix. :param M: The matrix to be transposed
:return: The transpose of the given matrix
def matrix_addition(A, B): Adds two matrices and returns the sum :param A: The first matrix :param B: The second matrix
:return: Matrix sum
def matrix_subtraction(A, B): Subtracts matrix B from matrix A and returns difference :param A: The first matrix :param B: The second matrix
:return: Matrix difference
def matrix_multiply(A, B): Returns the product of the matrix A * B :param A: The first matrix - ORDER MATTERS! :param B: The second matrix
:return: The product of the two matrices
def multiply_matrices(list): """ Find the product of a list of matrices from first to last :param list: The list of matrices IN ORDER
:return: The product of the matrices
def check_matrix_equality(A, B, tol=None): Checks the equality of two matrices. :param A: The first matrix :param B: The second matrix :param tol: The decimal place tolerance of the check
:return: The boolean result of the equality check
def unitize_vector(vector): Find the unit vector for a vector :param vector: The vector to find a unit vector for
:return: A unit-vector of vector
Release files for matxop 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| matxop-0.0.1.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| matxop-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / matxop-0.0.1.tar.gz
| Download URL | matxop-0.0.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ee17b252c2312087a40a2404f496cb42b259612515deff034ea79e11b921d20
|
|
BLAKE2b-256 checksum How to use checksums |
6c1380b148476703694f385e9ba2a62bef5b620d0f5291d403f4cb13f6c46c43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / matxop-0.0.1-py3-none-any.whl
| Download URL | matxop-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de8fe555cdf879716a238467b29c284c2d12bf424c5286d8ad83837a25729433
|
|
BLAKE2b-256 checksum How to use checksums |
b2c1a6d85c4abdf6bd5f5fd68743fbc0aee85dbe500aa5bd50bc4b0093067ed1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|