Vladimir Chalupecky
bd50f5876c
mat: add fastpath for SymBandDense to VecDense.MulVec
2019-09-26 13:38:37 +02:00
Dan Kortschak
40fa6a493b
mat: make SetFromU panic on non-empty size mismatch
2019-09-24 06:31:07 +09:30
Dan Kortschak
d1098a5195
stat/distmat: change methods to accept empty instead of nil matrices
2019-09-23 22:17:27 +09:30
Dan Kortschak
c9689bae36
optimize: remove redundant return
2019-09-23 19:37:22 +09:30
Vladimir Chalupecky
bcfb93e049
mat: clean up docs
2019-09-22 18:24:17 +02:00
Brendan Tracey
16f4144126
mat: Change methods to accept empty instead of nil matrices ( #1090 )
...
* mat: Change methods to accept empty instead of nil matrices
While here, fix enough to compile.
Updates #1081 .
2019-09-20 19:19:07 +01:00
Yucheng Zhu
6294a9c877
A+C: add Yucheng Zhu
2019-09-20 16:01:31 +09:30
Brendan Tracey
975d99cd20
mat,all: Rename IsZero to IsEmpty ( #1088 )
...
This avoids the confusion between Zero() and IsZero() which sounds like they should be related
to one another but are not. This makes IsEmpty the counterpart to Reset. Add check for Zero in allMatrix
Fixes #1083 .
Updates #1081 .
2019-09-15 13:53:29 +01:00
Dan Kortschak
51b431f5b9
mat: use "mat" prefix for all errors and panics
2019-09-14 20:14:05 +09:30
Brendan Tracey
cd52c4d030
mat: Expose ReuseAs method to help resizing ( #1082 )
...
* mat: Expose ReuseAs method to help resizing
Fixes #963
2019-09-14 09:17:29 +01:00
Brendan Tracey
40d3308efe
combin: Add helpers for dealing with permutations ( #1076 )
...
* combin: Add helpers for dealing with permutations
2019-09-11 21:00:27 +01:00
Dan Kortschak
1d8f8b2ee4
all: address issues identified by golangci-lint
2019-09-09 07:38:44 +09:30
Dan Kortschak
e51f19f66e
all: gofmt -s
2019-09-08 18:45:57 +09:30
Dan Kortschak
20883b5a15
mat: reduce allocation from pool use
...
This was flagged by staticcheck as "SA6002 – Storing non-pointer values
in sync.Pool allocates memory".
2019-09-08 17:37:50 +09:30
Dan Kortschak
c662fcb795
mat: don't assign unused value
2019-09-08 17:37:50 +09:30
Dan Kortschak
4241a63a39
mat: remove redundant check constructions
...
This was missed in a8659125a9 .
2019-09-08 07:14:59 +09:30
Dan Kortschak
9329cb7525
graph/path: use type system to differentiate behaviours within JohnsonAllPaths
...
This change separates the two phases of the all pair shortest path
algorithm into different types, simplifying each part and removing a
conditional from the Dijkstra all paths code path.
2019-09-07 21:10:23 +09:30
Dan Kortschak
0a637e253b
graph/path: clean up AStar benchmarks with subtests
2019-09-07 07:05:52 +09:30
Dan Kortschak
17ea55aedb
blas,lapack: clean up docs and comments
...
Apply (with manual curation after the fact):
* s/^T/U+1d40/g
* s/^H/U+1d34/g
* s/, {2,3}if / $1/g
Some additional manual editing of odd formatting.
2019-09-06 20:02:29 +09:30
Dan Kortschak
2065cbd6b4
appveyor: remove go1.10
2019-09-04 20:35:19 +09:30
Dan Kortschak
57bf14eee2
travis: update test matrix for go1.13
2019-09-04 20:35:19 +09:30
Dario Heinisch
43865b531b
A+C: add Dario Heinisch
2019-09-02 10:08:36 +09:30
Dario Navin
88884a56e9
graph/path: use queue-based Bellman-Ford algorithm
...
See Sedgewick and Wayne, Algorithms 4th Edition from p672 onward.
2019-09-02 08:36:32 +09:30
Brendan Tracey
d61003946d
stat/combin: Add CombinationToIndex and IndexToCombination functions ( #1054 )
...
* stat/combin: Add CombinationToIndex and IndexToCombination functions
2019-08-21 11:10:10 +01:00
Dan Kortschak
035030958a
blas: fix copy paste error
2019-08-19 20:36:41 +09:30
Brendan Tracey
b0ff1e7714
combin: Change Cartesian to deal with indices ( #1059 )
...
Fixes #1057 .
2019-08-17 12:41:00 +01:00
Vladimir Chalupecky
01f78999a4
lapack/gonum: fix inf-norm computation for unit lower triangular matrices
2019-08-17 00:48:19 +02:00
Vladimir Chalupecky
7584990dc8
lapack/testlapack: rework test for Dtrcon
2019-08-17 00:48:19 +02:00
Vladimir Chalupecky
0436873561
lapack/gonum: use Dcombssq (and Dlassq) in Dlange, Dlansy, Dlantr
2019-08-16 11:05:05 +02:00
Vladimir Chalupecky
cd1e4b9660
lapack/testlapack: fix spelling
2019-08-15 11:55:37 +02:00
Vladimir Chalupecky
8b91875836
lapack/gonum: add Dlansb with test
2019-08-15 11:55:37 +02:00
Vladimir Chalupecky
b720316f92
lapack/gonum: add Dcombssq with test
2019-08-15 11:55:37 +02:00
Vladimir Chalupecky
d3a6f40645
lapack/testlapack: add test for Dlassq
2019-08-15 11:55:37 +02:00
Vladimir Chalupecky
0242537858
lapack/testlapack: rewrite test for Dgecon from table-based to randomized
2019-08-15 09:46:50 +02:00
Vladimir Chalupecky
33540c531c
lapack/testlapack: fix test for Dpbcon
2019-08-15 09:46:50 +02:00
Dan Kortschak
ced62fe510
travis: make sure checks exit non-zero if they fail
2019-08-09 06:24:15 +09:30
Dan Kortschak
99e48c9b02
graph/layout: handle difference between pure go and asm kernels
2019-08-08 18:38:21 +09:30
Dan Kortschak
2dfa205328
mat: add minimal shadow detection for complex matrices
2019-08-08 11:38:57 +09:30
Dan Kortschak
3ce8ac2a2f
mat: fix benchmark typo
2019-08-05 15:28:05 +09:30
Dan Kortschak
e67905e3d2
mat: panic with the advertised value for invalid norm order
2019-08-05 14:27:18 +09:30
Dan Kortschak
3db0b42b51
mat: line break code consistently with LQ and LU
2019-08-05 13:25:13 +09:30
Dan Kortschak
761db73e45
mat: fix doc comment for LQ.Factorize
2019-08-05 13:25:13 +09:30
Dan Kortschak
dd3505df7d
mat: move sizeInt64 to testing file to quieten unused
2019-08-05 09:20:35 +09:30
Dan Kortschak
bd38d47bf6
mat: remove dead code in overlap testing
...
This should have been removed in b525d7 when the code was switched to
rectangular.
2019-08-05 06:59:15 +09:30
Vladimir Chalupecky
9c10b50738
lapack/gonum: refactor inner loop in Dpbcon
2019-08-03 09:39:02 +02:00
Vladimir Chalupecky
3cac0797bd
lapack/testlapack: add test for Dpbcon
2019-08-03 09:39:02 +02:00
Vladimir Chalupecky
5e114941f3
lapack/gonum: add Dpbcon
2019-08-03 09:39:02 +02:00
Dan Kortschak
e8e4638a21
graph/multi: don't allocate line maps before they are needed
2019-08-03 07:06:15 +09:30
Dan Kortschak
4e61e64b45
graph/simple: don't allocate edge maps before they are needed
...
Also fix incorrect optimisation in WeightedDirected.Nodes.
2019-08-03 07:06:15 +09:30
Vladimir Chalupecky
e9a50d6433
lapack/gonum: fix matrix slice length checks in banded functions
2019-08-02 10:40:26 +02:00