Settings

Theme

Matrix Cookbook examples using SymPy

github.com

3 points by sierpinsky 2 years ago · 1 comment

Reader

sierpinskyOP 2 years ago

I recently discovered a unit test file in the SymPy repository that demonstrates how to use SymPy for matrix calculus, specifically for finding derivatives of symbolic matrix expressions. This is of course very useful when working with optimization problems in e.g. machine-learning. The point is that SymPy can do this directly (in matrix form), yet this is not really obvious from the available documentation / content on forums.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection