testlapack: make tests independent

This commit is contained in:
kortschak
2016-02-15 14:23:02 +10:30
parent 1d7a2a405a
commit 3d87f56b23
52 changed files with 158 additions and 106 deletions

View File

@@ -18,6 +18,7 @@ type Dgebrder interface {
}
func DgebrdTest(t *testing.T, impl Dgebrder) {
rnd := rand.New(rand.NewSource(1))
for _, test := range []struct {
m, n, lda int
}{
@@ -44,7 +45,7 @@ func DgebrdTest(t *testing.T, impl Dgebrder) {
minmn := min(m, n)
a := make([]float64, m*lda)
for i := range a {
a[i] = rand.NormFloat64()
a[i] = rnd.NormFloat64()
}
d := make([]float64, minmn)