Derivative of the determinant of a singular matrix is NaN
See original GitHub issueConsider the following code
from jax import grad
import jax.numpy as np
x = np.zeros(shape=(4,4))
d = grad(np.linalg.det)
print(d(x))
the derivative of np.linalg.det(x)
against x
is obviously a zero matrix, but NaNs was outputted
Issue Analytics
- State:
- Created 4 years ago
- Comments:26 (25 by maintainers)
Top Results From Across the Web
Derivatives of determinant function when the matrix variable is ...
The first derivative of the determinant function is well-known and is given by Jacobi formula: let A(t) be a matrix function of scalar...
Read more >Singular and Non-singular Matrix, Math Lecture | Sabaq.pk
Singular and non- singular matrix with determinant zero or non zero using examplesThis video is about: Singular and Non- singular Matrix.
Read more >Singular matrices | Precalculus | Khan Academy - YouTube
Courses on Khan Academy are always 100% free. Start practicing—and saving your progress—now: ...
Read more >Determinants and matrix differentiation - YouTube
Determinants and matrix multiplication. ... Determinants and matrix differentiation. 4.2K views 4 years ago.
Read more >The Matrix Cookbook - Mathematics
determinant, derivative of inverse matrix, differentiate a matrix. ... The condition number can be used to measure how singular a matrix is.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The function I shared above already works. I’m just working on integrating it into JAX.
Woohoooooo thanks @dpfau!