An open API service indexing awesome lists of open source software.

https://github.com/bolner/visual-matrix-decomposition

Visualizing matrix decompositions
https://github.com/bolner/visual-matrix-decomposition

csharp dotnet-core linear-algebra matrix-factorization visualization

Last synced: over 1 year ago
JSON representation

Visualizing matrix decompositions

Awesome Lists containing this project

README

          

# Visualizing Matrix Decomposition

This `.NET Core` application generates animations. It applies LU and QR decompositions to linear transformations, and shows the effects of the factors independently. See example result:

[![Watch the video](doc/tumbler.jpg)](https://www.youtube.com/watch?v=AIOEtorHctc)

Other videos:
- QR decomposition: https://www.youtube.com/watch?v=CWEhxN0hemE
- Continuous QR decomposition: https://www.youtube.com/watch?v=ZDH84Yu8B3E
- An older version of the LU dec.: https://www.youtube.com/watch?v=Mc89G9_kPwk
- Eigendecomposition: https://www.youtube.com/watch?v=ZpqwO0348Dw
- Eigendecomposition with shearing: https://www.youtube.com/watch?v=hF6pPGwvvYg (1440p)

# Install `.NET Core`

On Ubuntu 18.04 (as root):

wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb

add-apt-repository universe
apt-get install apt-transport-https
apt-get update
apt-get install dotnet-sdk-2.2

On Windows:
- https://dotnet.microsoft.com/download

# Run the application

dotnet run -c Release

# To convert the images to videos, use FFMPEG:

"E:\ffmpeg\ffmpeg.exe" -start_number 0 -loop 1 -t 120 -i "E:\path\to\source\frame_%4d.png" -c:v libx264 -b 2800K -vf "fps=30" E:\path\to\dest\video.mp4