mirror of
https://github.com/gonum/gonum.git
synced 2025-10-05 07:06:54 +08:00
lapack/gonum: require exact length of tau in QR routines
This commit is contained in:

committed by
Vladimír Chalupecký

parent
bd767ae5eb
commit
6e2f5c5890
@@ -62,8 +62,9 @@ func DgeqrfTest(t *testing.T, impl Dgeqrfer) {
|
||||
|
||||
// Allocate a slice for scalar factors of elementary reflectors
|
||||
// and fill it with random numbers.
|
||||
tau := make([]float64, n)
|
||||
for i := 0; i < n; i++ {
|
||||
k := min(m, n)
|
||||
tau := make([]float64, k)
|
||||
for i := range tau {
|
||||
tau[i] = rnd.Float64()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user