Skip to content

Commit

Permalink
Merge 99120a6 into c6f1f8a
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-ch committed Jul 12, 2017
2 parents c6f1f8a + 99120a6 commit 60467ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
14 changes: 1 addition & 13 deletions blas/gonum/level1double.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,7 @@ func (Implementation) Daxpy(n int, alpha float64, x []float64, incX int, y []flo
return
}
if incX == 1 && incY == 1 {
if len(x) < n {
panic(badLenX)
}
if len(y) < n {
panic(badLenY)
}
f64.AxpyUnitaryTo(y, alpha, x[:n], y)
f64.AxpyUnitary(alpha, x[:n], y[:n])
return
}
var ix, iy int
Expand All @@ -286,12 +280,6 @@ func (Implementation) Daxpy(n int, alpha float64, x []float64, incX int, y []flo
if incY < 0 {
iy = (-n + 1) * incY
}
if ix >= len(x) || ix+(n-1)*incX >= len(x) {
panic(badLenX)
}
if iy >= len(y) || iy+(n-1)*incY >= len(y) {
panic(badLenY)
}
f64.AxpyInc(alpha, x, y, uintptr(n), uintptr(incX), uintptr(incY), uintptr(ix), uintptr(iy))
}

Expand Down
14 changes: 1 addition & 13 deletions blas/gonum/level1single.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions blas/gonum/single_precision.bash
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ cat level1double.go \
\
| gofmt -r 'f64.AxpyInc -> f32.AxpyInc' \
| gofmt -r 'f64.AxpyIncTo -> f32.AxpyIncTo' \
| gofmt -r 'f64.AxpyUnitary -> f32.AxpyUnitary' \
| gofmt -r 'f64.AxpyUnitaryTo -> f32.AxpyUnitaryTo' \
| gofmt -r 'f64.DotUnitary -> f32.DotUnitary' \
| gofmt -r 'f64.ScalUnitary -> f32.ScalUnitary' \
Expand Down

0 comments on commit 60467ba

Please sign in to comment.