Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cgo/lapack.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (impl Implementation) Dgels(trans blas.Transpose, m, n, nrhs int, a []float
return true
}
checkMatrix(m, n, a, lda)
checkMatrix(mn, nrhs, b, ldb)
checkMatrix(max(m, n), nrhs, b, ldb)
if len(work) < lwork {
panic(shortWork)
}
Expand Down
2 changes: 1 addition & 1 deletion native/dgels.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (impl Implementation) Dgels(trans blas.Transpose, m, n, nrhs int, a []float
notran := trans == blas.NoTrans
checkMatrix(m, n, a, lda)
mn := min(m, n)
checkMatrix(mn, nrhs, b, ldb)
checkMatrix(max(m, n), nrhs, b, ldb)

// Find optimal block size.
tpsd := true
Expand Down