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

Commit 0b075b7

Browse files
committed
lapack/native: remove unused package-wide constants smlnum and bignum
1 parent f397ebe commit 0b075b7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

native/dlatrs.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ func (impl Implementation) Dlatrs(uplo blas.Uplo, trans blas.Transpose, diag bla
5151
if n == 0 {
5252
return 0
5353
}
54+
smlnum := dlamchS / dlamchP
55+
bignum := 1 / smlnum
5456
scale = 1
5557
bi := blas64.Implementation()
5658
if !normin {

native/general.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,4 @@ const (
127127
// 1/dlamchS does not overflow, or also the smallest normal number.
128128
// For IEEE this is 2^{-1022}.
129129
dlamchS = 1.0 / (1 << 256) / (1 << 256) / (1 << 256) / (1 << 254)
130-
131-
smlnum = dlamchS / dlamchP
132-
bignum = 1 / smlnum
133130
)

0 commit comments

Comments
 (0)