Commit 7462a25a authored by William D. Irons's avatar William D. Irons
Browse files

Fix matrix_inverse_tril_test handling the inverse of 0

The inverse of 0 is undefined, so when computing the inverse of a lower
triangular numpy array, we need to ensure the zeros in the upper
parts of the triangle remain as zero. After doing the inverse
of an array, iterator over the array and set the values above the
main diagonal to zero.
See: https://github.com/numpy/numpy/issues/11445
Fixes: #20013
parent 7e8927e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment