lapack/gonum: add TODO for dlamchE and dlamchS literals

This commit is contained in:
Dan Kortschak
2019-05-09 14:18:47 +09:30
parent 8e1e88d468
commit 8da9ad2821

View File

@@ -37,6 +37,8 @@ func abs(a int) int {
const ( const (
// dlamchE is the machine epsilon. For IEEE this is 2^{-53}. // dlamchE is the machine epsilon. For IEEE this is 2^{-53}.
dlamchE = 1.0 / (1 << 53) dlamchE = 1.0 / (1 << 53)
// TODO(kortschak) Replace this with 0x1p-53 when go1.12 is no
// longer supported.
// dlamchB is the radix of the machine (the base of the number system). // dlamchB is the radix of the machine (the base of the number system).
dlamchB = 2 dlamchB = 2
@@ -48,4 +50,6 @@ const (
// 1/dlamchS does not overflow, or also the smallest normal number. // 1/dlamchS does not overflow, or also the smallest normal number.
// For IEEE this is 2^{-1022}. // For IEEE this is 2^{-1022}.
dlamchS = 1.0 / (1 << 256) / (1 << 256) / (1 << 256) / (1 << 254) dlamchS = 1.0 / (1 << 256) / (1 << 256) / (1 << 256) / (1 << 254)
// TODO(kortschak) Replace this with 0x1p-1022 when go1.12 is no
// longer supported.
) )