Skip to content

Commit

Permalink
lapack/netlib: let lapacke compute optimal work length for Dgeqrf
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-ch committed May 15, 2018
1 parent bc8d96c commit 14f1951
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lapack/netlib/lapack.go
Original file line number Diff line number Diff line change
Expand Up @@ -1076,12 +1076,8 @@ func (impl Implementation) Dgeqrf(m, n int, a []float64, lda int, tau, work []fl
if len(work) < max(1, lwork) {
panic(shortWork)
}
if lwork == -1 {
work[0] = float64(n)
return
}
checkMatrix(m, n, a, lda)
if lwork < n {
if lwork < n && lwork != -1 {
panic(badWork)
}
k := min(m, n)
Expand Down

0 comments on commit 14f1951

Please sign in to comment.