Numeric Calculus python module in the topic of Linear Algebra
Project description
Seals - Numeric Calculus
This python package is made for applied Numeric Calculus of Linear Algebra. It is made with the following objectives in mind:
-
Scan csv files to make a numpy matrix.
-
Write a matrix into a csv file
-
Insert user input into a matrix or a vector.
-
Use methods to proccess the matrices.
- Identity Matrix
- Gauss Elimination
- Inverse Matrix
- Cholesky Decomposition
- LU Decomposition
- Cramer
Syntax
The function scan has the following syntax scan(path)
, where path
is the path to your directory.
The function solution has the following syntax write(array,path)
, where array
is the matrix that you desire to output and path
is the path to your directory.
The python class Insert has a method for matrix and another for vector, and it has the following syntax Insert.method(array)
, where Insert
is the Python Class and method
is either a matrix
or a vector
and array
is either a matrix or a vector.
Processes
The python class process has all the methods described in the first session.
To call the method use a syntax like sl = Seals.process()
, where sl
is an instance and to use a method you have to append the method in front of the instance like: sl.identity(array)
.
-
The method identity returns a numpy identity matrix of the order of the matrix passed into to it, and it has the following syntax
sl.identity(array)
, whicharray
is a square matrix. -
The method gauss returns a numpy vector containing the vector of variables from the augmented matrix.
sl.gauss(matrix)
, whichmatrix
is the augmented matrix. -
The method inverse returns a numpy inverse matrix of the matrix passed into to it, and it has the following syntax
sl.inverse(matrix)
, whichmatrix
is a square matrix. -
The method cholesky returns a numpy vector containing the vector of variables from the coefficient matrix and the constants vector, and it has the following syntax
sl.cholesky(A,b)
, whichA
is the coefficient matrix andb
is the constants vector. -
The method decomposition returns a numpy vector containing the vector of variables from the coefficient matrix and the constants vector, and it has the following syntax
sl.cholesky(A,b)
, whichA
is the coefficient matrix andb
is the constants vector. -
The method cramer returns a numpy vector containing the vector of variables from the coefficient matrix and the constants vector, and it has the following syntax
sl.cholesky(A,b)
, whichA
is the coefficient matrix andb
is the constants vector.
Installation
To install the package from source cd
into the directory and run:
pip install .
or run
pip install yoshi-seals
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
Hashes for yoshi_seals-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd21bd0ab2c3df4a3575e9cdfe4df0051f57b838aee20a7d19f1c6cd517e6208 |
|
MD5 | e2f4b39a8b1d40d27a4d85ab6dde2655 |
|
BLAKE2b-256 | c6489c2aef2f2c1285fdad51fd82625125f75a348479168f222e281b72f4ed61 |