Skip to content

Commit

Permalink
lapack/gonum: return scale 1 for zero sized matrices in Dlatrs and Dl…
Browse files Browse the repository at this point in the history
…atbs
  • Loading branch information
vladimir-ch committed Jun 26, 2023
1 parent 429b1dc commit 09a7841
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lapack/gonum/dlatbs.go
Expand Up @@ -52,7 +52,7 @@ func (Implementation) Dlatbs(uplo blas.Uplo, trans blas.Transpose, diag blas.Dia

// Quick return if possible.
if n == 0 {
return 0
return 1
}

switch {
Expand Down
2 changes: 1 addition & 1 deletion lapack/gonum/dlatrs.go
Expand Up @@ -45,7 +45,7 @@ func (impl Implementation) Dlatrs(uplo blas.Uplo, trans blas.Transpose, diag bla

// Quick return if possible.
if n == 0 {
return 0
return 1
}

switch {
Expand Down

0 comments on commit 09a7841

Please sign in to comment.