Commit Graph

6037 Commits

Author SHA1 Message Date
Dan Kortschak
0acd6516a6 stat/distuv: add chi distribution 2021-06-11 19:40:21 +09:30
Dan Kortschak
086421b9b6 stat/disuv: make helpers and disambiguate case indexes 2021-06-11 18:10:45 +09:30
Vladimir Chalupecky
da688c04b6 lapack/gonum: avoid no-op row swap in Dlaswp 2021-06-06 23:45:28 +02:00
Deleplace
2b838f4d6e A+C: add Valentin Deleplace 2021-06-04 10:37:34 +02:00
Dan Kortschak
97f387b38f graph/encoding: provide attribute handling out of the box 2021-06-04 07:45:54 +09:30
Dan Kortschak
c8613b2ab9 graph/formats/rdf: fail early for dst mismatch 2021-06-03 17:31:15 +09:30
Matthew Connelly
a683c830ae graph/graphs/gen: add breadth-first n-ary tree constructor 2021-06-01 15:34:36 -04:00
Vladimir Chalupecky
8c7f0017f9 testlapack: consolidate floating-point constants 2021-05-29 11:16:29 +02:00
Vladimir Chalupecky
7a7717c859 mat: clarify docs for EigenSym.Values
Document that EigenSym.Values gives eigenvalues in ascending order.
2021-05-27 11:31:28 +02:00
Vladimir Chalupecky
2ea969e78c mat: remove testing with blas/netlib package 2021-05-27 11:31:01 +02:00
Dan Kortschak
efbee9bf28 mat: rename pool helpers to be consistent with type names 2021-05-27 17:07:31 +09:30
Dan Kortschak
608b72c3f0 mat: rename pools to be more consistent with handled types 2021-05-27 17:07:31 +09:30
Dan Kortschak
2efb5158f1 mat: use math/bits for calculating pool sizes 2021-05-27 17:07:31 +09:30
Vladimir Chalupecky
48873a0cd3 lapack/testlapack: add benchmark for Dlangb 2021-05-27 00:38:04 +02:00
Dan Kortschak
80ff04b367 graph/encoding/dot: don't panic when an Attributers returns a nil 2021-05-27 07:13:10 +09:30
Dan Kortschak
571f6ffe3c stat: explicitly panic when calling CDF with empty x 2021-05-21 18:19:16 +09:30
Dan Kortschak
87c72c1b85 stat: explicitly panic when calling Quantile with empty x 2021-05-21 18:19:16 +09:30
Vladimir Chalupecky
e25273b06b blas/gonum: rewrite Drotg and extend its test 2021-05-19 11:41:04 +02:00
Vladimir Chalupecky
1671d98121 internal/math32: add Max and Min 2021-05-19 11:41:04 +02:00
Dan Kortschak
03398562de all: clean up lint identified by ruleguard
Ruleguard run with ruleguard -c=0 -rules ruleguard.rules.go ./... from
https://github.com/dgryski/semgrep-go with the following rules inactivated
to reduce noise:

- unconvert for floating point values
- oddcomparisons
- floateq
2021-05-19 05:44:58 +09:30
Dan Kortschak
a4975614d9 Revert "codecov: change override branch to master"
This reverts commit acc6e5ab14.

Reason for revert: This was an experiement that appears not to have
worked.
2021-05-18 18:34:06 +09:30
Dan Kortschak
dfcf2af26c Revert "codecov: remove override_pr"
This reverts commit e9617f3847.

Reason for revert: This was an experiment that appears not to have
worked.
2021-05-18 18:34:06 +09:30
Vladimir Chalupecky
286b092654 lapack/gonum: rewrite Dlassq and its test 2021-05-15 21:17:38 +02:00
Vladimir Chalupecky
b4dd4cfbca mat: remove from docs references to "matrix" package 2021-05-13 09:37:55 +02:00
Vladimir Chalupecky
41e3de04ce mat: document Normer 2021-05-13 09:37:55 +02:00
Vladimir Chalupecky
3de5d6c644 mat: return ErrZeroLength when size is zero and document it 2021-05-13 09:37:55 +02:00
Dan Kortschak
ea5c577f8c cmplxs: add conjugate multiplies and real scales 2021-05-13 07:24:25 +09:30
Dan Kortschak
e9617f3847 codecov: remove override_pr
This is to investigate the recent failure to upload coverage reports after
merging into master as the master branch. This is required due to the model
codecov uses to calculate coverage changes.

The change here was suggested by codecov support as an experiment.
2021-05-13 06:37:20 +09:30
Vladimir Chalupecky
e99241cb7d mat: remove unused BandWidther interface 2021-05-12 12:37:43 +02:00
Vladimir Chalupecky
7d9d51f30f mat: add DiagDense.Norm 2021-05-12 10:57:51 +02:00
Vladimir Chalupecky
39cb21da6b mat: remove TestTridiagNorm
Tridiag.Norm is now covered by TestNorm
2021-05-11 16:23:27 +02:00
Vladimir Chalupecky
544b314c6d mat: add Normer interface and use it in Norm 2021-05-11 16:23:27 +02:00
Vladimir Chalupecky
d440876c00 mat: panic if matrix is empty in Tridiag.Norm 2021-05-11 16:23:27 +02:00
Vladimir Chalupecky
32854e3cda mat: add TriBandDense.Norm 2021-05-11 16:23:27 +02:00
Vladimir Chalupecky
dd45c215c4 mat: add SymBandDense.Norm 2021-05-11 16:23:27 +02:00
Vladimir Chalupecky
06f3d524c3 mat: add BandDense.Norm 2021-05-11 16:23:27 +02:00
Vladimir Chalupecky
f712ff204e mat: add VecDense.Norm 2021-05-11 16:23:27 +02:00
Vladimir Chalupecky
d4333513da mat: add TriDense.Norm 2021-05-11 16:23:27 +02:00
Vladimir Chalupecky
c935d6f1aa mat: add SymDense.Norm 2021-05-11 16:23:27 +02:00
Vladimir Chalupecky
35f38e4c0a mat: add Dense.Norm 2021-05-11 16:23:27 +02:00
Dan Kortschak
674d3f1c73 graph/encoding/{,di}graph6: fix bit handling for graph size encoding 2021-05-09 17:44:04 +09:30
Vladimir Chalupecky
f0d77794af lapack/{gonum,testlapack}: don't use work in Dlangb 2021-05-07 16:44:11 +02:00
Vladimir Chalupecky
d66e8d4b48 lapack/{gonum,testlapack}: extend Dlangb to non-square band matrices 2021-05-07 16:44:11 +02:00
Vladimir Chalupecky
142fecace0 lapack/{gonum,testlapack}: add Dlangb and its test 2021-05-07 16:44:11 +02:00
Dan Kortschak
911f47973b internal/extreme: fix random method calls
Previously if either of the extreme probabilities were non-zero, only
extreme values would be returned.
2021-05-07 21:45:54 +09:30
Dan Kortschak
326e41ebb8 graph/graphs/gen: check for all node id collisions
This incurs a greater cost for well-behaved code, but prevents subtle
errors that would otherwise not be caught, for example cycle(1,2,3,4,5,3)
not being a single cycle.
2021-05-06 17:44:51 +09:30
Dan Kortschak
3f0deff25e graph/formats/rdf: add URDNA2015 and URGNA2012 canonicalisation
With the inclusion of the complete JSON-LD RDF Dataset Normalization test
suite these can now be dual licensed.
2021-05-05 14:52:27 +09:30
Dan Kortschak
a6eddb68ae graph/formats/rdf: work on optimising performance of IsoCanonicalize
name                                             old time/op    new time/op    delta
IsoCanonicalHashes/test019-in.nq/decomp=false-8    27.6µs ± 6%    26.4µs ± 5%  -4.08%  (p=0.000 n=46+48)
IsoCanonicalHashes/test019-in.nq/decomp=true-8     29.9µs ± 5%    29.6µs ± 3%  -1.12%  (p=0.000 n=45+49)
IsoCanonicalHashes/test044-in.nq/decomp=false-8     449ms ± 3%     432ms ± 1%  -3.84%  (p=0.000 n=45+47)
IsoCanonicalHashes/test044-in.nq/decomp=true-8      462ms ± 1%     452ms ± 4%  -2.13%  (p=0.000 n=44+43)

name                                             old alloc/op   new alloc/op   delta
IsoCanonicalHashes/test019-in.nq/decomp=false-8    16.1kB ± 0%    16.5kB ± 0%  +2.39%  (p=0.000 n=50+50)
IsoCanonicalHashes/test019-in.nq/decomp=true-8     18.9kB ± 0%    19.5kB ± 0%  +2.79%  (p=0.000 n=50+50)
IsoCanonicalHashes/test044-in.nq/decomp=false-8    85.4MB ± 0%    82.1MB ± 0%  -3.93%  (p=0.000 n=49+50)
IsoCanonicalHashes/test044-in.nq/decomp=true-8     84.7MB ± 0%    81.3MB ± 0%  -3.97%  (p=0.000 n=48+50)

name                                             old allocs/op  new allocs/op  delta
IsoCanonicalHashes/test019-in.nq/decomp=false-8       207 ± 0%       215 ± 0%  +3.86%  (p=0.000 n=50+50)
IsoCanonicalHashes/test019-in.nq/decomp=true-8        238 ± 0%       249 ± 0%  +4.62%  (p=0.000 n=50+50)
IsoCanonicalHashes/test044-in.nq/decomp=false-8     1.53M ± 0%     1.51M ± 0%  -1.03%  (p=0.000 n=49+50)
IsoCanonicalHashes/test044-in.nq/decomp=true-8      1.52M ± 0%     1.51M ± 0%  -1.04%  (p=0.000 n=49+50)
2021-05-05 14:52:27 +09:30
Dan Kortschak
782095d131 graph/formats/rdf: implement canonicalisation hashing
Test cases test001-in.nq to test062-in.nq are from [1] licensed under the
W3C BSD 3-clause license. Test cases hogan*.nq are from the original paper
used with permission.

[1]https://json-ld.github.io/normalization/tests/index.html
2021-05-05 14:52:27 +09:30
Vladimir Chalupecky
5782abdfec mat: add Tridiag to list_test 2021-05-04 07:34:30 +02:00