further simplification to Drotm

This commit is contained in:
btracey
2014-01-06 15:26:37 -08:00
parent 6825287c89
commit 228e338324

View File

@@ -457,15 +457,14 @@ func (Blas) Drotm(n int, x []float64, incX int, y []float64, incY int, p blas.Dr
iy = (-n + 1) * incY iy = (-n + 1) * incY
} }
for i := 0; i < n; i++ { for i := 0; i < n; i++ {
w := x[ix] x[ix], y[iy] = x[ix]*h11+y[iy]*h12, x[ix]*h21+y[iy]*h22
z := y[iy]
x[ix] = w*h11 + z*h12
y[iy] = w*h21 + z*h22
ix += incX ix += incX
iy += incY iy += incY
} }
/* /*
More complicated version of the above, though possibly faster
if flag == -2 { if flag == -2 {
return return
} }