mirror of
https://github.com/gonum/gonum.git
synced 2025-10-04 06:46:29 +08:00
testlapack: adjust some tolerances (#1224)
This commit is contained in:

committed by
GitHub

parent
86e8186781
commit
a84dbb2e4f
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user