Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

Commit cae2fd6

Browse files
committed
zero index remaining occurences
1 parent 7c9410b commit cae2fd6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lapack.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ type Float64 interface {
4848
type Direct byte
4949

5050
const (
51-
Forward Direct = 'F' // Reflectors are right-multiplied, H(0) * H(1) * ... * H(k).
52-
Backward Direct = 'B' // Reflectors are left-multiplied, H(k) * ... * H(1) * H(0).
51+
Forward Direct = 'F' // Reflectors are right-multiplied, H(0) * H(1) * ... * H(k-1).
52+
Backward Direct = 'B' // Reflectors are left-multiplied, H(k-1) * ... * H(1) * H(0).
5353
)
5454

5555
// Sort is the sorting order.

native/dlatrd.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ import (
5353
// H has the form
5454
// I - tau * v * v^T
5555
// If uplo == blas.Upper,
56-
// Q = H(n) * H(n-1) * ... * H(n-nb+1)
56+
// Q = H(n-1) * H(n-2) * ... * H(n-nb)
5757
// where v[:i-1] is stored in A[:i-1,i], v[i-1] = 1, and v[i:n] = 0.
5858
//
5959
// If uplo == blas.Lower,
60-
// Q = H(1) * H(2) * ... H(nb)
61-
// where v[1:i+1] = 0, v[i+1] = 1, and v[i+2:n] is stored in A[i+2:n,i].
60+
// Q = H(0) * H(1) * ... * H(nb-1)
61+
// where v[:i+1] = 0, v[i+1] = 1, and v[i+2:n] is stored in A[i+2:n,i].
6262
//
6363
// The vectors v form the n×nb matrix V which is used with W to apply a
6464
// symmetric rank-2 update to the unreduced part of A

0 commit comments

Comments
 (0)