Skip to content

Commit

Permalink
fix axis
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Nov 26, 2024
1 parent 1f11e40 commit 761795c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glass/core/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def nnls(
for _ in range(maxiter):
if xp.all(p):
break
w = xp.linalg.vecdot(b - a @ x, a, axis=1)
w = xp.linalg.vecdot(b - a @ x, a, axis=0)
m = index[~p][xp.argmax(w[~p])]
if w[m] <= tol:
break
Expand Down

0 comments on commit 761795c

Please sign in to comment.