/procedural-matrix-decomposition

A Python program generating steps to decompose a matrix

Primary LanguagePythonMIT LicenseMIT


Procedural Matrix Decomposition

Using Numpy and Pylatex


Table of Contents
  1. About The Project
  2. How To Use
  3. License

About The Project

Phiên bản tiếng Việt: nhánh vn-vi

A minimum viable product that is part of the development process of LAFD

A Python program using Numpy and Pylatex to procedurally generate every step of a matrix decomposition process.

The algorithm used is recursive and depends only on basic matrix operations. Our aim is to introduce the concept of matrix decomposition in a comprehensible fashion.

Example

Input

matrix_A

Output: example1.pdf

(back to top)

How To Use

Streamlit

The project is deployed on Streamlit for ease of use, thanks to its Cloud sharing service.

Just head to this link.

Local use

Requirements (It is recommended to use a virtual environemnt such as Anaconda.)

  • Python >= 3.11.5
  • Numpy and Pylatex
  • A Latex compiler such as MiKTeX or TeXLive AND necessary LaTex packages (MiKTeX should automatically show you packages you need to install when you first run the Python program.)

Then download the two files write.py and algo.py located in /local

Finally, use your favorite code compiler or the command line and run write.py

python /path/to/write.py

To decompose a matrix of your choice, simply modify the Numpy matrix called matrix_A located in the main function

matrix_A

in write.py

For more information about Numpy's matrices, head to numpy.matrix

(back to top)

License

MIT License © VPC

(back to top)