Does Matrix operation.
Project description
#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
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file matxop-0.0.1.tar.gz.
File metadata
- Download URL: matxop-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ee17b252c2312087a40a2404f496cb42b259612515deff034ea79e11b921d20
|
|
| MD5 |
abddd526f404580ad4b6b5781fb1d03c
|
|
| BLAKE2b-256 |
6c1380b148476703694f385e9ba2a62bef5b620d0f5291d403f4cb13f6c46c43
|
File details
Details for the file matxop-0.0.1-py3-none-any.whl.
File metadata
- Download URL: matxop-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de8fe555cdf879716a238467b29c284c2d12bf424c5286d8ad83837a25729433
|
|
| MD5 |
e350a74589a47ee8c5daf70455b68a80
|
|
| BLAKE2b-256 |
b2c1a6d85c4abdf6bd5f5fd68743fbc0aee85dbe500aa5bd50bc4b0093067ed1
|