Skip to content

Commit

Permalink
Merge pull request #62 from kamesy/kmsy/perf
Browse files Browse the repository at this point in the history
Fix initial dual edge case
  • Loading branch information
jondeuce authored Apr 15, 2024
2 parents 266312d + 30c6cd6 commit e9d8eb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lsqnonneg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function solve!(
w[j] = wj
end
@inbounds w[end] = 0
@inbounds w[end] = all(<=(0), w)
# initialize nnls workspace
@inbounds for i in 1:m
Expand Down Expand Up @@ -130,6 +131,7 @@ function solve!(
w[j] = wj
end
@inbounds w[end] = 0
@inbounds w[end] = all(<=(0), w)
# initialize nnls workspace
@inbounds for i in 1:m
Expand Down

0 comments on commit e9d8eb2

Please sign in to comment.