Skip to content

Commit

Permalink
lapack/gonum: fix for-loop end condition in Dgetri
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-ch committed Jan 17, 2019
1 parent 3dcd135 commit e9c5252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lapack/gonum/dgetri.go
Expand Up @@ -91,7 +91,7 @@ func (impl Implementation) Dgetri(n int, a []float64, lda int, ipiv []int, work
jb := min(nb, n-j)
// Copy current block column of L to work and replace
// with zeros.
for jj := j; jj < j+jb-1; jj++ {
for jj := j; jj < j+jb; jj++ {
for i := jj + 1; i < n; i++ {
work[i*ldwork+(jj-j)] = a[i*lda+jj]
a[i*lda+jj] = 0
Expand Down

0 comments on commit e9c5252

Please sign in to comment.