mirror of
https://github.com/gonum/gonum.git
synced 2025-10-25 08:10:28 +08:00
cmplxs,floats,internal/asm: don't use global rand state
This commit is contained in:
@@ -137,7 +137,7 @@ func BenchmarkL2NormNetlib(b *testing.B) {
|
||||
{"L2NormUnitaryNetlib", netlib},
|
||||
{"L2NormUnitary", L2NormUnitary},
|
||||
}
|
||||
x[0] = randomSlice(1, 1)[0] // replace the leading zero (edge case)
|
||||
x[0] = 4 // replace the leading zero (edge case)
|
||||
for _, test := range tests {
|
||||
for _, ln := range []uintptr{1, 3, 10, 30, 1e2, 3e2, 1e3, 3e3, 1e4, 3e4, 1e5} {
|
||||
b.Run(fmt.Sprintf("%s-%d", test.name, ln), func(b *testing.B) {
|
||||
|
||||
Reference in New Issue
Block a user