Linear Systems and Sparse Matrices with Numpy and Scipy

3 years ago
63

A lot of problems in numerical methods boil down to solving systems of linear equations. In many cases, the matrices involved are very large. Fortunately, often one finds most of the entries of these are zero. These are referred to as sparse matrices. There are many advantages to being able to use sparse systems. Memory storage is greatly reduced as well as the ability to use algorithms custom built to perform fasted than with dense matrices. I’ll show Numpy’s basic ability to solve systems of linear equations, the I’ll revisit the stock monte carlo code from a previous video and treat it as a system of linear equations and use sparse matrix capabilities that are built in to Scipy to generate a simulated run of stock prices.

Github: https://github.com/kpmooney/numerical_methods_youtube/tree/master/sparse_matriices

Tip Jar: http://paypal.me/kpmooney

Loading comments...