mirror of
https://github.com/gonum/gonum.git
synced 2025-10-20 21:59:25 +08:00

Responded to PR comments modified travis file Changed input and output types added back needed types by cgo Fixed perl script so it compiles Changes to genLapack to allow compilation Reinstate test-coverage.sh
32 lines
406 B
Go
32 lines
406 B
Go
package native
|
|
|
|
import "github.com/gonum/lapack"
|
|
|
|
type Implementation struct{}
|
|
|
|
var _ lapack.Float64 = Implementation{}
|
|
|
|
const (
|
|
badUplo = "lapack: illegal triangle"
|
|
nLT0 = "lapack: n < 0"
|
|
badLdA = "lapack: index of a out of range"
|
|
)
|
|
|
|
func blockSize() int {
|
|
return 64
|
|
}
|
|
|
|
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
|
|
}
|