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

@@ -267,7 +267,7 @@ func Geqp3(a blas64.General, jpvt []int, tau, work []float64, lwork int) {
// algorithm. A is modified to contain the information to construct Q and R.
// The upper triangle of a contains the matrix R. The lower triangular elements
// (not including the diagonal) contain the elementary reflectors. tau is modified
// to contain the reflector scales. tau must have length at least min(m,n), and
// to contain the reflector scales. tau must have length min(m,n), and
// this function will panic otherwise.
//
// The ith elementary reflector can be explicitly constructed by first extracting