lapack/gonum: require exact length of tau in QR routines

This commit is contained in:
Vladimir Chalupecky
2023-10-05 19:30:15 +02:00
committed by Vladimír Chalupecký
parent bd767ae5eb
commit 6e2f5c5890
17 changed files with 57 additions and 55 deletions

View File

@@ -52,7 +52,8 @@ func DlarftTest(t *testing.T, impl Dlarfter) {
}
}
// Use dgeqr2 to find the v vectors
tau := make([]float64, n)
k := min(m, n)
tau := make([]float64, k)
work := make([]float64, n)
impl.Dgeqr2(m, n, a, lda, tau, work)
@@ -64,7 +65,6 @@ func DlarftTest(t *testing.T, impl Dlarfter) {
h := constructH(tau, vMat, store, direct)
k := min(m, n)
ldt := test.ldt
if ldt == 0 {
ldt = k