mirror of
https://github.com/gonum/gonum.git
synced 2025-11-02 19:34:01 +08:00
lapack/testlapack: use worklen type in DgetriTest
... and make worklen type a Stringer.
This commit is contained in:
committed by
Vladimír Chalupecký
parent
0662aa10a9
commit
85a94c5204
@@ -50,6 +50,18 @@ const (
|
||||
optimumWork
|
||||
)
|
||||
|
||||
func (wl worklen) String() string {
|
||||
switch wl {
|
||||
case minimumWork:
|
||||
return "minimum"
|
||||
case mediumWork:
|
||||
return "medium"
|
||||
case optimumWork:
|
||||
return "optimum"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// nanSlice allocates a new slice of length n filled with NaN.
|
||||
func nanSlice(n int) []float64 {
|
||||
s := make([]float64, n)
|
||||
|
||||
Reference in New Issue
Block a user