Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

Commit e4e1876

Browse files
committed
testlapack: add zero-sized matrix to Dormlq test cases
1 parent 79d3912 commit e4e1876

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testlapack/dormlq.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func DormlqTest(t *testing.T, impl Dormlqer) {
2525
for _, test := range []struct {
2626
common, adim, cdim, lda, ldc int
2727
}{
28+
{0, 0, 0, 0, 0},
2829
{6, 7, 8, 0, 0},
2930
{6, 8, 7, 0, 0},
3031
{7, 6, 8, 0, 0},
@@ -100,7 +101,7 @@ func DormlqTest(t *testing.T, impl Dormlqer) {
100101
} else {
101102
nw = mc
102103
}
103-
work = make([]float64, nw)
104+
work = make([]float64, max(1, nw))
104105
impl.Dorml2(side, trans, mc, nc, k, a, lda, tau, ans, ldc, work)
105106

106107
var lwork int

0 commit comments

Comments
 (0)