1 // Copyright ©2015 The Gonum Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 //+build !amd64 noasm appengine
10 // for i, v := range x {
13 func AxpyUnitary(alpha float64, x, y []float64) {
20 // for i, v := range x {
21 // dst[i] = alpha*v + y[i]
23 func AxpyUnitaryTo(dst []float64, alpha float64, x, y []float64) {
25 dst[i] = alpha*v + y[i]
30 // for i := 0; i < int(n); i++ {
31 // y[iy] += alpha * x[ix]
35 func AxpyInc(alpha float64, x, y []float64, n, incX, incY, ix, iy uintptr) {
36 for i := 0; i < int(n); i++ {
37 y[iy] += alpha * x[ix]
44 // for i := 0; i < int(n); i++ {
45 // dst[idst] = alpha*x[ix] + y[iy]
50 func AxpyIncTo(dst []float64, incDst, idst uintptr, alpha float64, x, y []float64, n, incX, incY, ix, iy uintptr) {
51 for i := 0; i < int(n); i++ {
52 dst[idst] = alpha*x[ix] + y[iy]