Commit Graph

16 Commits

Author SHA1 Message Date
Dan Kortschak
a4dda6a99c all: make tests pass when -count is greater than 1
Tests run repeatedly do not reinitialise state, meaning that a second run
of the tests will have leftover state from the previous run. This ensures
that repeated runs are identical with the exception of map iteration order.
2022-08-06 15:52:53 +09:30
Sebastien Binet
5c77642844 spatial/r1: import and rename from bound
* spatial/r1: import and rename from bound

Mechanically generated with:

 $> gomvpkg -from gonum.org/v1/gonum/bound -to gonum.org/v1/gonum/spatial/r1 -vcs_mv_cmd "git mv {{.Src}} {{.Dst}}"

Fixes #956.
2019-06-21 13:49:53 +02:00
Dan Kortschak
5d695651a1 stat,stat/distmv: don't allocate matrix on nil input 2019-04-13 20:14:59 +09:30
Brendan Tracey
db51563d4e bound: add Bound package and type (#845)
* bound: add Bound package and type

Updates 833.
2019-02-10 18:41:55 -05:00
Dan Kortschak
70492dcef1 all: quieten vet for unkeyed composite literals in test code 2018-09-02 07:59:12 +09:30
Brendan Tracey
57620814e8 stat/sampleuv,stat/samplemv: remove individual functions and rename t… (#357)
* stat/sampleuv,stat/samplemv: remove individual functions and rename types
2017-12-20 23:38:36 -05:00
kortschak
54a5f6f081 all: fix build and make tests pass with new streams 2017-11-17 12:38:53 +10:30
kortschak
fa0c5aa7bc all: use golang.org/x/exp/rand instead of math/rand 2017-11-17 11:52:34 +10:30
kortschak
805531d142 all: change capitalization of gonum in license header 2017-11-02 06:54:08 +10:30
Brendan Tracey
637e7b76b9 stat/samplemv: give tests fixed random seeds (#290) 2017-10-27 00:27:34 -06:00
Brendan Tracey
e5448cb39f stat/all: reduce random size and test tolerance to decrease testing t… (#181)
* stat/all: reduce random size and test tolerance to decrease testing time.

We were generating a lot of random numbers, which is slow. Decrease the size of those random numbers, and in some cases increase the tolerance to compensate. In a couple cases, pull out code from testFullDist to allow for more fine-grained testing. This decrases:
distmat from 4.5s to 0.5s
distmv from 24.8s to 9s
distuv from 65.2s to 13s
samplemv from 2.8s to 1.2s
sampleuv from 3.5s to 2.1s
2017-08-07 18:09:24 -06:00
kortschak
6557c5dc64 all: simplify code identified by gosimple 2017-06-20 15:04:11 +09:30
kortschak
33b5a66ba7 mat: remove View* methods 2017-06-17 06:45:53 +09:30
Brendan Tracey
0d639745f1 all: update packages from mat64 to mat.
This mostly changes package name and code, but also fixes a couple of name clashes with the new package names
2017-06-13 10:28:21 -06:00
Brendan Tracey
d33397aa65 all: change import paths 2017-05-23 00:03:03 -06:00
Brendan Tracey
61c782d390 stat: imported stat as a subtree 2017-05-23 00:02:52 -06:00