Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

Commit

Permalink
testlapack: make dlamchS const
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-ch committed Mar 24, 2017
1 parent fdbe83c commit ca9eaaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testlapack/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ import (
const (
// dlamchE is the machine epsilon. For IEEE this is 2^-53.
dlamchE = 1.0 / (1 << 53)
dlamchP = 2 * dlamchE
dlamchB = 2
dlamchP = dlamchB * dlamchE
// dlamchS is the smallest normal number. For IEEE this is 2^{-1022}.
dlamchS = 1.0 / (1 << 256) / (1 << 256) / (1 << 256) / (1 << 254)
)

var dlamchS = math.Nextafter((4 / math.MaxFloat64), 0)

func max(a, b int) int {
if a > b {
return a
Expand Down

0 comments on commit ca9eaaf

Please sign in to comment.