blas/gonum: rewrite drotmg using Hopkins' implementation

Also fix blas.Flag documentation and explicitly state values.
This commit is contained in:
Dan Kortschak
2018-03-01 04:27:55 +10:30
committed by GitHub
parent 5e47fe3bf1
commit 58e39c9afd
4 changed files with 325 additions and 205 deletions

View File

@@ -10,10 +10,10 @@ package blas
type Flag int
const (
Identity Flag = iota - 2 // H is the identity matrix; no rotation is needed.
Rescaling // H specifies rescaling.
OffDiagonal // Off-diagonal elements of H are units.
Diagonal // Diagonal elements of H are units.
Identity Flag = -2 // H is the identity matrix; no rotation is needed.
Rescaling Flag = -1 // H specifies rescaling.
OffDiagonal Flag = 0 // Off-diagonal elements of H are non-unit.
Diagonal Flag = 1 // Diagonal elements of H are non-unit.
)
// SrotmParams contains Givens transformation parameters returned