Commit Graph

157 Commits

Author SHA1 Message Date
Vladimir Chalupecky
b9dd614508 native: change Dlaqr2 into Dlaqr23 2016-08-29 20:19:39 +09:00
Vladimir Chalupecky
e6d67e3382 testlapack: add test for Dlaqr4 2016-08-29 11:39:55 +09:00
Vladimir Chalupecky
7f0eabc5a2 native,testlapack: reduce required length of wr and wi in Dlahqr
Dlahqr must not (and does not) write into wr and wi beyond ihi, so it only makes
sense to make the slices shorter. Dlaqr4 (the caller) will have the same restriction.
2016-08-29 11:39:52 +09:00
Vladimir Chalupecky
dde4ecd953 native,testlapack: fix wrong order of parameters in Dlaqr5 2016-08-29 11:39:52 +09:00
Vladimir Chalupecky
afbacb74f6 testlapack: use nil for slice arguments in workspace query in DormqrTest 2016-08-25 20:10:30 +09:00
Vladimir Chalupecky
4937e8ebf6 testlapack: modify test for Dormqr to trigger panic in Dlarfb.
See https://github.com/gonum/lapack/issues/176
2016-08-23 15:02:54 +09:00
Vladimir Chalupecky
b125291e21 native: check input slices to Dlaqr2, Dgehrd and Dormhr only after workspace query
so that it is possible to pass all slices as nil to those functions. A workspace
query should depend only on the input sizes, the matrices and vectors must
not be accessed anyway or may not be available at the call site. Moreover, often
the reference LAPACK uses arbitrary placeholders for arrays and relies on the
fact that no checking is done.
2016-08-20 11:05:19 +09:00
Vladimir Chalupecky
30aa278560 native,testlapack: fix docs and checks for correct size of T and W in Dlaqr2 2016-08-18 23:00:44 +09:00
Vladimir Chalupecky
eb1d558436 testlapack: add test for Dlaqr2 2016-08-18 07:10:06 +09:00
Vladimir Chalupecky
ea1e73995d testlapack: rename isHessenberg to isUpperHessenberg 2016-08-18 06:31:47 +09:00
Vladimir Chalupecky
dc7d85e1a9 testlapack: remove isAnyNaN helper function
floats.HasNaN exists
2016-08-18 06:29:40 +09:00
Vladimir Chalupecky
310c3d8639 testlapack: clean up test for Dlahqr 2016-08-17 17:32:00 +09:00
Vladimir Chalupecky
11ac63edd6 testlapack: remove unneeded rnd parameter from testDlahqr 2016-08-17 17:26:38 +09:00
Vladimir Chalupecky
2a0753fab4 testlapack: add tests with known eigenvalues for Dlahqr 2016-08-17 17:26:38 +09:00
Vladimir Chalupecky
d093c738ed testlapack: add some helper functions 2016-08-17 17:18:28 +09:00
Vladimir Chalupecky
1ad3375777 testlapack: extend test for Dlahq
... to check that Z^T*(initial H)*Z and (final H) are (approximately) equal if
wantz and wantt are both true.
2016-08-17 14:56:29 +09:00
Vladimir Chalupecky
33cac0c526 testlapack: add dlahqrTest struct and pass it to testDlahqr
... to allow testing with explicit Hessenberg matrices with known eigenvalues.
2016-08-17 14:56:29 +09:00
Vladimir Chalupecky
4c78a4dea7 testlapack: update test for Dlahqr 2016-08-15 14:44:53 +09:00
Vladimir Chalupecky
8aa2469a2b testlapack: add test for Dtrexc 2016-08-12 15:01:15 +09:00
Vladimir Chalupecky
a8773d9d7d native: add indicator of convergence to returned values from Dlahqr
Previously, the zero value of the returned integer info was used to indicate
success. This is wrong because it is a 0-based index unlike the reference LAPACK
where it is a 1-based index and therefore 0 is available for such purpose. This
commit adds `converged bool` to the returned values from Dlahqr.
2016-08-09 16:28:58 +09:00
Vladimir Chalupecky
cc9ec28aff testlapack: remove unnecessary \n from t.Errorf messages 2016-08-04 09:15:38 +09:00
Vladimir Chalupecky
8999eb29a9 testlapack: test that Dlaexc returns true with n1=n2=1 2016-08-04 09:13:15 +09:00
Vladimir Chalupecky
7d7a48bfe7 testlapack: fix and update test for Dlaexc 2016-08-04 09:08:47 +09:00
Vladimir Chalupecky
af40c3c091 testlapack: add helper functions for blocks in Schur canonical form 2016-08-04 09:08:47 +09:00
Vladimir Chalupecky
d0746dfd8f testlapack: add test for Dlaln2 2016-07-28 17:32:22 +09:00
Vladimir Chalupecky
f82647ca92 testlapack: add DlaexcTest 2016-07-28 09:03:34 +09:00
Vladimir Chalupecky
a707fd7aae testlapack: add DlahqrTest 2016-06-24 09:46:16 +09:00
Vladimir Chalupecky
185879e510 testlapack: fix triangularOutsideAllNaN for zero-side matrices 2016-06-19 11:23:53 +09:00
Vladimir Chalupecky
fa54f31047 testlapack: update nanTriangular 2016-06-19 11:23:53 +09:00
Vladimir Chalupecky
e35b96787f testlapack: update nanGeneral 2016-06-19 11:23:53 +09:00
Vladimir Chalupecky
68f437d807 testlapack: fix generalOutsideAllNan 2016-06-19 11:23:53 +09:00
Vladimir Chalupecky
0d275382ea testlapack: add test for Dlarfx 2016-06-15 09:11:54 +09:00
Vladimir Chalupecky
7e496a8ae1 testlapack: add randomSlice and equalApproxGeneral 2016-06-15 09:11:54 +09:00
Vladimir Chalupecky
ce7b7dc280 testlapack: add DormhrTest 2016-06-15 08:54:27 +09:00
Vladimir Chalupecky
f203992d4d testlapack: add DorghrTest 2016-06-14 10:41:51 +09:00
Vladimir Chalupecky
39ee5d4efa native:dlasy2 2016-06-10 14:14:31 +09:00
Vladimir Chalupecky
fb46a9be5e testlapack: add test for Dgehrd 2016-06-08 15:23:26 +09:00
kortschak
0a88dcb8a8 cgo/clapack: use LAPACKE_func_work functions
This reduces allocations and harmonises the cgo and native behaviours.
2016-06-03 14:47:20 +09:30
Vladimir Chalupecky
2a708f2c6e testlapack: add test for Dlaqr5 that doesn't use reference data 2016-06-02 15:32:55 +09:00
Vladimir Chalupecky
16181c3a7e testlapack: add randomHessenberg function 2016-06-02 15:32:55 +09:00
Vladimir Chalupecky
1f34fc3dd3 testlapack: update test for Dlaqr5 to read testing data in JSON format 2016-06-02 15:32:55 +09:00
Vladimir Chalupecky
c400f8c7b1 testlapack/testdata: add generated testing data for Dlaqr5 2016-06-02 15:32:55 +09:00
Vladimir Chalupecky
4257888380 testlapack,native: add test for Dgehd2 2016-06-01 13:48:01 +09:00
Vladimir Chalupecky
712ed0c3dd testlapack: add test for Dlahr2 that doesn't use reference data 2016-05-27 18:26:30 +09:00
Vladimir Chalupecky
d64f16a4df testlapack: add test for Dlahr2 2016-05-26 18:22:53 +09:00
Vladimir Chalupecky
345442d197 internal/testdata/dlahr2test: add program for generating testing data 2016-05-26 18:22:53 +09:00
Vladimir Chalupecky
0e2dee2a87 testlapack: update and move helper functions 2016-05-26 18:22:53 +09:00
Vladimir Chalupecky
73fa4ef51d testlapack: add test for Dlaqr5 2016-05-16 10:07:02 +09:00
Vladimir Chalupecky
f1575d0675 native: add test for Dlaqr1 2016-04-26 10:06:25 +09:00
Vladimir Chalupecky
2322b64d03 native: add test for Dlanv2 2016-04-26 09:02:54 +09:00