@@ -565,15 +565,17 @@ func (impl Implementation) Dgeqrf(m, n int, a []float64, lda int, tau, work []fl
565
565
// -1 if n == 0, otherwise Dgehrd will panic.
566
566
//
567
567
// On return, tau will contain the scalar factors of the elementary reflectors.
568
- // Elements tau[:ilo] and tau[ihi:] of tau will be set to zero. It must have
569
- // length equal to n-1 if n > 1 , otherwise Dgehrd will panic.
568
+ // Elements tau[:ilo] and tau[ihi:] will be set to zero. tau must have length
569
+ // equal to n-1 if n > 0 , otherwise Dgehrd will panic.
570
570
//
571
- // work must have length at least lwork, otherwise Dgehrd will panic, and lwork
572
- // must be at least max(1,n).
571
+ // work must have length at least lwork and lwork must be at least max(1,n),
572
+ // otherwise Dgehrd will panic. On return, work[0] contains the optimal value of
573
+ // lwork.
573
574
//
574
- // The C interface does not support providing temporary storage. To provide
575
- // compatibility with native, lwork == -1 will not run Dgehrd but will instead
576
- // write the minimum work necessary to work[0].
575
+ // If lwork == -1, instead of performing Dgehrd, only the optimal value of lwork
576
+ // will be stored in work[0].
577
+ //
578
+ // Dgehrd is an internal routine. It is exported for testing purposes.
577
579
func (impl Implementation ) Dgehrd (n , ilo , ihi int , a []float64 , lda int , tau , work []float64 , lwork int ) {
578
580
checkMatrix (n , n , a , lda )
579
581
switch {
0 commit comments