mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-16 00:03:53 +01:00
feat(modules): migrate to go modules and bump go version 1.14.4
- migrate to go module - bump go version 1.14.4 Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
This commit is contained in:
parent
f5ae3ff476
commit
fa76b346a0
837 changed files with 104140 additions and 158314 deletions
51
vendor/gonum.org/v1/gonum/lapack/gonum/lapack.go
generated
vendored
Normal file
51
vendor/gonum.org/v1/gonum/lapack/gonum/lapack.go
generated
vendored
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
// Copyright ©2015 The Gonum Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package gonum
|
||||
|
||||
import "gonum.org/v1/gonum/lapack"
|
||||
|
||||
// Implementation is the native Go implementation of LAPACK routines. It
|
||||
// is built on top of calls to the return of blas64.Implementation(), so while
|
||||
// this code is in pure Go, the underlying BLAS implementation may not be.
|
||||
type Implementation struct{}
|
||||
|
||||
var _ lapack.Float64 = Implementation{}
|
||||
|
||||
func min(a, b int) int {
|
||||
if a < b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func max(a, b int) int {
|
||||
if a > b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func abs(a int) int {
|
||||
if a < 0 {
|
||||
return -a
|
||||
}
|
||||
return a
|
||||
}
|
||||
|
||||
const (
|
||||
// dlamchE is the machine epsilon. For IEEE this is 2^{-53}.
|
||||
dlamchE = 1.0 / (1 << 53)
|
||||
|
||||
// dlamchB is the radix of the machine (the base of the number system).
|
||||
dlamchB = 2
|
||||
|
||||
// dlamchP is base * eps.
|
||||
dlamchP = dlamchB * dlamchE
|
||||
|
||||
// dlamchS is the "safe minimum", that is, the lowest number such that
|
||||
// 1/dlamchS does not overflow, or also the smallest normal number.
|
||||
// For IEEE this is 2^{-1022}.
|
||||
dlamchS = 1.0 / (1 << 256) / (1 << 256) / (1 << 256) / (1 << 254)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue