Skip to content

mohamed-stifi/Solve-linear-system-and-matrix-decomposition-LU-Cholesky-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linear Algebra Solvers and Matrix Decompositions

This repository contains Python implementations for solving systems of linear equations, finding the inverse of a matrix, and performing matrix decompositions. The following methods are included:

  1. Gauss-Jordan Elimination: Solves a system of linear equations A x = b and finds the inverse of a matrix A using the Gauss-Jordan elimination method.

  2. LU Decomposition: Computes the LU decomposition of a matrix A and uses it to solve the system A x = b.

  3. Cholesky Decomposition: Performs the Cholesky decomposition of a positive-definite matrix A and uses it to solve the system A x = b.

  4. Comparison: Computes the running time of these solving methods and provides a comparison of their efficiency.

Python Files

Here is a list of the Python files in this repository:

  • Choleski_decomposition.py: Python implementation of the Cholesky decomposition.
  • Find_the_inverse_of_a_matrix_by_elimination_of_Gauss.py: Python code to find the inverse of a matrix using the Gauss-Jordan elimination method.
  • Implementation_for_the_LU_decomposition.py: Python implementation of the LU decomposition.
  • Inverse_by_Choleski_decomposition.py: Python code to find the inverse of a matrix using Cholesky decomposition.
  • LU_Inverse.py: Python script for finding the inverse of a matrix using LU decomposition.
  • Solve_a_system_by_LU_decomposition.py: Python script for solving a system of linear equations using LU decomposition.
  • Solve_a_system_by_the_elimination_of-Gauss.py: Python script for solving a system of linear equations using Gauss-Jordan elimination.
  • comparing_these_solving_methods.py: Python script for comparing the efficiency of the different solving methods.

Usage

To use these implementations, you can import the relevant Python files into your own projects or run the comparison script to evaluate the performance of the methods.

Documentation

For a detailed explanation of the algorithms and usage examples, please refer to the Lab_03__Solve_linear_system_and_matrix_decomposition.pdf file in this repository.

We hope you find these implementations useful for your linear algebra and matrix decomposition needs. If you have any questions or encounter any issues, feel free to open an issue in this repository.

Happy linear algebra solving!

About

Use the elimination of Gauss-Jordan to find the inverse of a matrix A

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages