Commit Graph

57 Commits

Author SHA1 Message Date
Dan Kortschak
cf3307fa63 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.
2025-02-01 22:18:04 +10:30
Eng Zer Jun
e44948ca04 all: replace min/max helpers with min/max builtins 2024-04-06 20:24:32 +10:30
Vladimir Chalupecky
7df15c334b lapack/gonum: clean up Dgghrd and its test 2023-09-14 22:21:33 +02:00
Patricio Whittingslow
f0a57a452a lapack/gonum: add Dgghrd and its test 2023-09-07 13:24:34 +02:00
Dan Kortschak
5f0141ca4c all: run gofmt and generate all packages
Changes made in dsp/fourier/internal/fftpack break the formatting used
there, so these are reverted. There will be complaints in CI.

[git-generate]
gofmt -w .
go generate gonum.org/v1/gonum/blas
go generate gonum.org/v1/gonum/blas/gonum
go generate gonum.org/v1/gonum/unit
go generate gonum.org/v1/gonum/unit/constant
go generate gonum.org/v1/gonum/graph/formats/dot
go generate gonum.org/v1/gonum/graph/formats/rdf
go generate gonum.org/v1/gonum/stat/card

git checkout -- dsp/fourier/internal/fftpack
2022-08-06 07:05:17 +09:30
Dan Kortschak
a2c6f817bf ci: replace golangci-lint with staticcheck 2022-05-18 21:35:57 +09:30
Vladimir Chalupecky
4d954ef929 lapack/testlapack: add intsEqual helper 2021-06-16 14:34:07 +02:00
Vladimir Chalupecky
8c7f0017f9 testlapack: consolidate floating-point constants 2021-05-29 11:16:29 +02:00
Vladimir Chalupecky
cdda7148b1 testlapack: move local implementations of Lapack functions to separate file 2020-10-27 09:16:20 +01:00
Vladimir Chalupecky
44dd7ff458 testlapack: add default cases to local dlan?? functions 2020-09-30 10:56:51 +02:00
Vladimir Chalupecky
eea0b5cb5c testlapack: add test for Dtbtrs 2020-09-30 10:56:51 +02:00
Vladimir Chalupecky
aacdd93956 testlapack: add test for Dtrtrs 2020-09-29 09:19:16 +02:00
Vladimir Chalupecky
cdf8275b3f testlapack: use helpers to name sub-tests 2020-08-20 01:18:56 +02:00
Vladimir Chalupecky
b5dc2156b0 testlapack: use f64.L2NormUnitary in dlange helper 2020-08-15 01:33:40 +02:00
Vladimir Chalupecky
b5c2b0d807 testlapack: implement Frobenius in dlange helper 2020-08-15 01:33:40 +02:00
Vladimir Chalupecky
90f4be8768 lapack/testlapack: add some helpers 2020-08-15 01:33:40 +02:00
Vladimir Chalupecky
f702758118 testlapack: add dlansb helper and use it in DpbconTest 2020-03-29 13:15:31 +02:00
Dan Kortschak
32189f28b7 lapack: use binary exponent float constants 2020-02-26 11:41:24 +10:30
Vladimir Chalupecky
de969dc2da testlapack: remove unused equalApprox helper 2020-02-23 09:15:54 +01:00
Vladimir Chalupecky
459cb8bec3 testlapack: remove unused helpers 2020-02-23 09:15:54 +01:00
Vladimir Chalupecky
8928ea27e9 testlapack: move and document residualOrthogonal 2020-02-23 09:15:54 +01:00
Vladimir Chalupecky
25a8a664a4 testlapack: replace isOrthogonal with residualOrthogonal 2020-02-23 09:15:54 +01:00
Vladimir Chalupecky
6f5fb37b77 testlapack: rework Dgeqp3Test 2020-02-23 09:15:54 +01:00
Vladimir Chalupecky
16e319c960 testlapack: use residualOrthogonal helper in Dorg2lTest and DgesvdTest 2020-02-21 22:42:22 +01:00
Vladimir Chalupecky
ec45d4d55c testlapack: simplify isSchurCanonical 2020-02-13 10:23:10 +01:00
Vladimir Chalupecky
50c8ada1af testlapack: extend isSchurCanonical helpers 2020-02-13 10:23:10 +01:00
Vladimir Chalupecky
606c8c53ff testlapack: add parameter to randomSchurCanonical to generate bad matrices 2020-02-13 10:23:10 +01:00
Vladimir Chalupecky
133b3496e8 testlapack: add equalGeneral helper 2020-02-13 10:23:10 +01:00
Vladimir Chalupecky
1caee46e06 testlapack: extend randomSchurCanonical helper
- generate "bad" matrices with zero and tiny eigenvalues
- return eigenvalues read from the diagonal of generated matrix
2020-02-13 10:23:10 +01:00
Dan Kortschak
937b367f5f testlapack: clean up lint 2019-11-07 19:57:05 +10: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
Vladimir Chalupecky
e9a50d6433 lapack/gonum: fix matrix slice length checks in banded functions 2019-08-02 10:40:26 +02:00
Vladimir Chalupecky
d7f6bfa9af lapack/testlapack: remove unused SymBand helpers 2019-06-17 12:52:28 +02:00
Vladimir Chalupecky
ce6986a678 lapack/testlapack: simplify randSymBand and use it in Dpb* tests 2019-06-17 12:52:28 +02:00
Vladimir Chalupecky
1ebd909faf lapack/testlapack: update implementation and docs of randSymBand helper 2019-06-14 19:31:40 +02:00
Vladimir Chalupecky
edc5a6c9aa lapack/testlapack: add svdJobString helper 2019-01-28 10:32:12 +01:00
Vladimir Chalupecky
e855e9fa8f lapack/testlapack: add hasOrthonormalRows helper 2019-01-28 10:32:12 +01:00
Vladimir Chalupecky
85a94c5204 lapack/testlapack: use worklen type in DgetriTest
... and make worklen type a Stringer.
2019-01-23 12:32:41 +01:00
Vladimir Chalupecky
08d9e7ed28 lapack/testlapack: change isIdentity to distFromIdentity 2019-01-19 00:28:03 +01:00
Vladimir Chalupecky
8323e5df1f lapack/testlapack: add sameLowerTri and sameUpperTri helpers 2019-01-04 23:08:42 +01:00
Vladimir Chalupecky
87489715e5 testlapack: add isIdentity helper 2019-01-04 23:08:42 +01:00
Brendan Tracey
572d9101fe blas64: add length field N to Vector
blas64: add length field N to Vector

Alongside, fix the implementation of mat.VecDense and mat.Diagonal, as well as other changes needed to fix this change.

Fixes #736.
2018-12-10 08:36:04 +00:00
Vladimir Chalupecky
6d5ac7aa26 lapack: rename DecompUpdate and add GenOrtho types and consts 2018-09-25 06:27:23 +02:00
Dan Kortschak
3f94af49e6 testlapack: quieten vet for unkeyed composite literals in importable code 2018-09-02 07:59:12 +09:30
Vladimir Chalupecky
929014505b blas/blas64: reorder struct fields
Reorder vector and matrix struct fields to match the order in which BLAS
routines accept them. This makes calls with inline declarations with
unnamed fields consistent and easier to understand.
2018-08-16 18:54:07 +02:00
Vladimir Chalupecky
19fd162bf9 lapack/testlapack: clean up hasOrthonormalColumns helper 2018-07-30 12:32:33 +02:00
Vladimir Chalupecky
99b6f69bff lapack/testlapack: move randomOrthogonal 2018-07-30 12:32:33 +02:00
Vladimir Chalupecky
6f49b3c58f lapack/testlapack: rename isOrthonormal to isOrthogonal 2018-07-30 12:32:33 +02:00
Vladimir Chalupecky
6c36e0d6b7 lapack/testlapack: clean up isOrthonormal 2018-07-30 12:32:33 +02:00
kortschak
fa0c5aa7bc all: use golang.org/x/exp/rand instead of math/rand 2017-11-17 11:52:34 +10:30