mirror of
https://github.com/gonum/gonum.git
synced 2025-10-05 15:16:59 +08:00
all: partially migrate to math/rand/v2
This is not intended to be a completed transition since it leaves the libraries unusable to external client code, but rather as a step towards use of math/rand/v2. This initial step allows repair of sequence change failures without having to worry about API difference.
This commit is contained in:
@@ -7,9 +7,8 @@ package lp
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"golang.org/x/exp/rand"
|
||||
|
||||
"gonum.org/v1/gonum/floats/scalar"
|
||||
"gonum.org/v1/gonum/internal/rand"
|
||||
"gonum.org/v1/gonum/mat"
|
||||
)
|
||||
|
||||
@@ -132,7 +131,7 @@ func TestSimplex(t *testing.T) {
|
||||
|
||||
rnd := rand.New(rand.NewSource(1))
|
||||
// Randomized tests
|
||||
testRandomSimplex(t, 20000, 0.7, 10, rnd)
|
||||
testRandomSimplex(t, 20000, 0.2, 10, rnd)
|
||||
testRandomSimplex(t, 20000, 0, 10, rnd)
|
||||
testRandomSimplex(t, 200, 0, 100, rnd)
|
||||
testRandomSimplex(t, 2, 0, 400, rnd)
|
||||
|
Reference in New Issue
Block a user