We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39058d7 commit 40c0c33Copy full SHA for 40c0c33
scripts/labs.py
@@ -59,7 +59,7 @@ def y_index(i, k):
59
np.fill_diagonal(A, 0.0)
60
61
# Normalize
62
- A /= A.max()
+ A /= max(A.max(), -A.min())
63
64
return A
65
0 commit comments