mirror of
https://github.com/gonum/gonum.git
synced 2025-10-22 14:49:29 +08:00
Add dorgqr and tests, update dorg2r tests, and fix cgo dorgqr
This commit is contained in:
@@ -226,9 +226,15 @@ func constructH(tau []float64, v blas64.General, store lapack.StoreV, direct lap
|
||||
return h
|
||||
}
|
||||
|
||||
// constructQ constructs the Q matrix from the result of dgeqrf and dgeqr2
|
||||
// constructQ constructs the Q matrix from the result of dgeqrf and dgeqr2.
|
||||
func constructQ(kind string, m, n int, a []float64, lda int, tau []float64) blas64.General {
|
||||
k := min(m, n)
|
||||
return constructQK(kind, m, n, k, a, lda, tau)
|
||||
}
|
||||
|
||||
// constructQK constructs the Q matrix from the result of dgeqrf and dgeqr2 using
|
||||
// the first k reflectors.
|
||||
func constructQK(kind string, m, n, k int, a []float64, lda int, tau []float64) blas64.General {
|
||||
var sz int
|
||||
switch kind {
|
||||
case "QR":
|
||||
|
Reference in New Issue
Block a user