mirror of
https://github.com/gonum/gonum.git
synced 2025-10-09 00:50:16 +08:00
further simplification to Drotm
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user