testlapack: adjust some tolerances (#1224)

This commit is contained in:
Vladimír Chalupecký
2020-01-27 10:06:36 +01:00
committed by GitHub
parent 86e8186781
commit a84dbb2e4f
4 changed files with 46 additions and 26 deletions

View File

@@ -121,7 +121,7 @@ func dlansbTest(t *testing.T, impl Dlansber, rnd *rand.Rand, uplo blas.Uplo, n,
case lapack.Frobenius:
normWant = frobWant
}
if math.Abs(normGot-normWant) >= tol {
if math.Abs(normGot-normWant) > tol*float64(n) {
t.Errorf("%v: unexpected result; got %v, want %v", name, normGot, normWant)
}
}