lapack: add SchurJob type

This commit is contained in:
Vladimir Chalupecky
2018-08-22 14:39:59 +02:00
committed by Vladimír Chalupecký
parent a6f3f37374
commit d3817b5e18
4 changed files with 13 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ import (
)
type Dhseqrer interface {
Dhseqr(job lapack.EVJob, compz lapack.EVComp, n, ilo, ihi int, h []float64, ldh int, wr, wi []float64,
Dhseqr(job lapack.SchurJob, compz lapack.EVComp, n, ilo, ihi int, h []float64, ldh int, wr, wi []float64,
z []float64, ldz int, work []float64, lwork int) int
}
@@ -32,7 +32,7 @@ type dhseqrTest struct {
func DhseqrTest(t *testing.T, impl Dhseqrer) {
for i, tc := range dhseqrTests {
for _, job := range []lapack.EVJob{lapack.EigenvaluesOnly, lapack.EigenvaluesAndSchur} {
for _, job := range []lapack.SchurJob{lapack.EigenvaluesOnly, lapack.EigenvaluesAndSchur} {
for _, wantz := range []bool{false, true} {
for _, extra := range []int{0, 11} {
testDhseqr(t, impl, i, tc, job, wantz, extra, true)
@@ -43,7 +43,7 @@ func DhseqrTest(t *testing.T, impl Dhseqrer) {
}
}
func testDhseqr(t *testing.T, impl Dhseqrer, i int, test dhseqrTest, job lapack.EVJob, wantz bool, extra int, optwork bool) {
func testDhseqr(t *testing.T, impl Dhseqrer, i int, test dhseqrTest, job lapack.SchurJob, wantz bool, extra int, optwork bool) {
const tol = 1e-14
evTol := test.tol
if evTol == 0 {