lapack/testlapack: use worklen type in DgetriTest

... and make worklen type a Stringer.
This commit is contained in:
Vladimir Chalupecky
2019-01-22 16:23:13 +01:00
committed by Vladimír Chalupecký
parent 0662aa10a9
commit 85a94c5204
2 changed files with 17 additions and 8 deletions

View File

@@ -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)