1 // Code generated by "go generate gonum.org/v1/gonum/blas/gonum”; DO NOT EDIT.
3 // Copyright ©2015 The Gonum Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
10 "gonum.org/v1/gonum/internal/asm/f32"
13 // Sdsdot computes the dot product of the two vectors plus a constant
14 // alpha + \sum_i x[i]*y[i]
16 // Float32 implementations are autogenerated and not directly tested.
17 func (Implementation) Sdsdot(n int, alpha float32, x []float32, incX int, y []float32, incY int) float32 {
30 if incX == 1 && incY == 1 {
37 return alpha + float32(f32.DdotUnitary(x[:n], y))
46 if ix >= len(x) || ix+(n-1)*incX >= len(x) {
49 if iy >= len(y) || iy+(n-1)*incY >= len(y) {
52 return alpha + float32(f32.DdotInc(x, y, uintptr(n), uintptr(incX), uintptr(incY), uintptr(ix), uintptr(iy)))