testlapack: move dlamch constants and variables to general.go
MODIFY
testlapack/general.go
testlapack/general.go
@@ -17,6 +17,15 @@ import (
"github.com/gonum/lapack"
)
+const (
+ // dlamchE is the machine epsilon. For IEEE this is 2^-53.
+ dlamchE = 1.0 / (1 << 53)
+ dlamchP = 2 * dlamchE
+ dlamchB = 2
+)
+
+var dlamchS = math.Nextafter((4 / math.MaxFloat64), 0)
+
func max(a, b int) int {
if a > b {
return a

MODIFY
testlapack/matgen.go
testlapack/matgen.go
@@ -12,15 +12,6 @@ import (
"github.com/gonum/blas/blas64"
)
-const (
- // dlamchE is the machine epsilon. For IEEE this is 2^-53.
- dlamchE = 1.0 / (1 << 53)
- dlamchP = 2 * dlamchE
- dlamchB = 2
-)
-
-var dlamchS = math.Nextafter((4 / math.MaxFloat64), 0)
-
// Dlatm1 computes the entries of dst as specified by mode, cond and rsign.
//
// mode describes how dst will be computed:

testlapack: move dlamch constants and variables to general.go