mirror of
https://github.com/gonum/gonum.git
synced 2025-10-18 05:00:43 +08:00
testlapack: consolidate floating-point constants
This commit is contained in:

committed by
Vladimír Chalupecký

parent
7a7717c859
commit
8c7f0017f9
@@ -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
|
||||
|
Reference in New Issue
Block a user