1 // Copyright ©2016 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 !noasm,!appengine
10 // for i, v := range x {
13 func AxpyUnitary(alpha float32, x, y []float32)
16 // for i, v := range x {
17 // dst[i] = alpha*v + y[i]
19 func AxpyUnitaryTo(dst []float32, alpha float32, x, y []float32)
22 // for i := 0; i < int(n); i++ {
23 // y[iy] += alpha * x[ix]
27 func AxpyInc(alpha float32, x, y []float32, n, incX, incY, ix, iy uintptr)
30 // for i := 0; i < int(n); i++ {
31 // dst[idst] = alpha*x[ix] + y[iy]
36 func AxpyIncTo(dst []float32, incDst, idst uintptr, alpha float32, x, y []float32, n, incX, incY, ix, iy uintptr)
39 // for i, v := range x {
40 // sum += float64(y[i]) * float64(v)
43 func DdotUnitary(x, y []float32) (sum float64)
46 // for i := 0; i < int(n); i++ {
47 // sum += float64(y[iy]) * float64(x[ix])
52 func DdotInc(x, y []float32, n, incX, incY, ix, iy uintptr) (sum float64)
55 // for i, v := range x {
59 func DotUnitary(x, y []float32) (sum float32)
62 // for i := 0; i < int(n); i++ {
63 // sum += y[iy] * x[ix]
68 func DotInc(x, y []float32, n, incX, incY, ix, iy uintptr) (sum float32)