blas/testblas: tighten data length to valid limit
This test pases for netlib implementation when generated (by us) bounds
checks are fixed.
MODIFY
blas/testblas/dgbmv.go
blas/testblas/dgbmv.go
@@ -41,7 +41,6 @@ func DgbmvTest(t *testing.T, blasser Dgbmver) {
{0, 0, 0, 2, -3, 2},
{0, 0, 0, 0, 1, 5},
{0, 0, 0, 0, 0, 6},
- {0, 0, 0, 0, 0, 0},
},
x: []float64{1, 2, 3, 4, 5, 6},
y: []float64{-1, -2, -3, -4, -5, -6, -7, -8, -9},
@@ -65,12 +64,50 @@ func DgbmvTest(t *testing.T, blasser Dgbmver) {
{0, 0, 0, 2, -3, 2},
{0, 0, 0, 0, 1, 5},
{0, 0, 0, 0, 0, 6},
- {0, 0, 0, 0, 0, 0},
},
x: []float64{1, 2, 3, 4, 5, 6, 7, 8, 9},
y: []float64{-1, -2, -3, -4, -5, -6},
ans: []float64{43, 77, 306, 241, 104, 348},
},
+ {
+ tA: blas.NoTrans,
+ m: 6,
+ n: 3,
+ lda: 1,
+ kL: 0,
+ kU: 0,
+ alpha: 2.0,
+ beta: 1.0,
+ a: [][]float64{
+ {1, 0, 0},
+ {0, 1, 0},
+ {0, 0, 1},
+ },
+ x: []float64{1, 2, 3},
+ y: []float64{-1, -2, -3, -4, -5, -6},
+ ans: []float64{1, 2, 3, -4, -5, -6},
+ },
+ {
+ tA: blas.Trans,
+ m: 6,
+ n: 3,
+ lda: 1,
+ kL: 0,
+ kU: 0,
+ alpha: 2.0,
+ beta: 1.0,
+ a: [][]float64{
+ {1, 0, 0},
+ {0, 1, 0},
+ {0, 0, 1},
+ {0, 0, 0},
+ {0, 0, 0},
+ {0, 0, 0},
+ },
+ x: []float64{1, 2, 3, 4, 5, 6},
+ y: []float64{-1, -2, -3},
+ ans: []float64{1, 2, 3},
+ },
} {
extra := 3
aFlat := flattenBanded(test.a, test.kU, test.kL)

blas/testblas: tighten data length to valid limit

This test pases for netlib implementation when generated (by us) bounds
checks are fixed.