Peter Hawkins 47e6da3332 Don't mask out zero elements on the diagonal of the matrix when inverting triangular matrices.
The intent of this code seems to have been to mask out zeros that were part of padding on the diagonal. However, this isn't correct: if there is a zero on the diagonal, we very much want to get an inf or nan! We also appear to now pad with the identity matrix.

Fixes https://github.com/google/jax/issues/3589
Fixes https://github.com/google/jax/issues/15429

PiperOrigin-RevId: 653562611
2024-07-18 04:09:44 -07:00
..
2024-05-28 23:23:51 -04:00
2024-06-26 16:10:18 -04:00
2024-06-25 09:02:32 -07:00
2024-02-05 18:01:48 -05:00
2024-05-25 17:46:01 +00:00
2024-06-25 09:02:32 -07:00
2024-07-08 08:12:30 -07:00
2024-07-15 12:54:00 -07:00