testlapack: consolidate floating-point constants

This commit is contained in:
Vladimir Chalupecky
2021-05-27 13:03:22 +02:00
committed by Vladimír Chalupecký
parent 7a7717c859
commit 8c7f0017f9
9 changed files with 77 additions and 89 deletions

View File

@@ -14,14 +14,6 @@ import (
)
func DlangbBenchmark(b *testing.B, impl Dlangber) {
const (
safmin = dlamchS
safmax = 1 / safmin
ulp = dlamchP
smlnum = safmin / ulp
bignum = safmax * ulp
)
rnd := rand.New(rand.NewSource(1))
for _, bm := range []struct {
n, k int