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

committed by
Vladimír Chalupecký

parent
7a7717c859
commit
8c7f0017f9
@@ -24,6 +24,12 @@ const (
|
||||
dlamchP = dlamchB * dlamchE
|
||||
// dlamchS is the smallest normal number. For IEEE this is 2^{-1022}.
|
||||
dlamchS = 0x1p-1022
|
||||
|
||||
safmin = dlamchS
|
||||
safmax = 1 / safmin
|
||||
ulp = dlamchP
|
||||
smlnum = safmin / ulp
|
||||
bignum = safmax * ulp
|
||||
)
|
||||
|
||||
func max(a, b int) int {
|
||||
|
Reference in New Issue
Block a user