Skip to content

Commit

Permalink
use linalg.vecdot
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Nov 26, 2024
1 parent 027a72b commit 1f11e40
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.dot(b - a @ x, a)
w = xp.linalg.vecdot(b - a @ x, a, axis=1)
m = index[~p][xp.argmax(w[~p])]
if w[m] <= tol:
break
Expand Down

0 comments on commit 1f11e40

Please sign in to comment.