Sparse Matrices to Speed up Calculations (Part 2): Partial Differential Equations - 1-D Diffusion

Опубликовано: 16 Июнь 2026
на канале: Kevin Mooney
1,290
28

We continue to dive in using sparse matrices in Numpy and Scipy to speed up calculations. In this video, we will solve a thermal diffusion problem in one dimension, turning the partial differential equation into a system of ordinary differential equations for which we have readily available solvers. We will compare the performance differences between generating our equation system with a for loop and generating it via sparse matrix multiplication.

Github: https://github.com/kpmooney/numerical...

Tip Jarhttps://paypal.me/kpmooney