Skip to content

Commit

Permalink
fix transpose_banded in scipy.linalg
Browse files Browse the repository at this point in the history
  • Loading branch information
BREUER Axel (ENGIE Global Markets SAS) committed Oct 8, 2023
1 parent 7f3b929 commit 9b5d154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autograd/scipy/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def transpose_banded(l_and_u, a):
T_a = anp.roll(a[:1, :], shifts[0])
for rr in range(1, num_rows):
T_a = anp.vstack([T_a, anp.flipud(anp.roll(a[rr:rr+1, :], shifts[rr]))])
T_a = anp.flipud(T_a)
T_a = anp.flipud(T_a)

T_l_and_u = anp.flip(l_and_u)

Expand Down

0 comments on commit 9b5d154

Please sign in to comment.