linear-algebra¶
About¶
This project builds on SymPy's Matrix class and is designed for students taking NUS MA1522 Linear Algebra for Computing. It has implementations of most of the algorithms taught during the course (as of Sem 1 AY24/25). Documentation of the code is still a work in progress.
Key Features¶
- Import matrices from \(\rm\LaTeX\) directly. \(\rm\LaTeX\) expression can be obtained from Canvas by right-clicking on the equations.
- Step-by-step workings for most algorithms (including LU Factorisation and SVD)
Installation and Usage¶
Installation¶
Prerequisites¶
This project is best supported in a Jupyter Notebook environment with Python 3.10+. You can download Python from here.
Install Dependencies¶
It is recommended to use a virtual environment for managing dependencies.
-
Create a virtual environment:
Bash -
Activate the virtual environment:
- On Windows:
Bash - On macOS/Linux:
Bash
- On Windows:
-
Install the library:
It is recommended to use a Jupyter Notebook environment to run the code.Bash Bash
Usage¶
Create a Jupyter Notebook test.ipynb
. Within the notebook, run the following code.
Documentation of more functions can be found here.
More usage examples can be found under tutorials.
Live demonstration of the library can be found here.
FAQ¶
Development¶
Work in Progress¶
- [ ] Better
ref
algorithm to determine boundary conditions for a given matrix.
Credits¶
I would like to thank @DenseLance for his contributions.