blas/gonum: rename zabs to dcabs1
MODIFY
blas/gonum/gonum.go
blas/gonum/gonum.go
@@ -70,6 +70,7 @@ func blocks(dim, bsize int) int {
return (dim + bsize - 1) / bsize
}
-func zabs(z complex128) float64 {
+// dcabs1 returns |real(z)|+|imag(z)|.
+func dcabs1(z complex128) float64 {
return math.Abs(real(z)) + math.Abs(imag(z))
}

MODIFY
blas/gonum/level1cmplx128.go
blas/gonum/level1cmplx128.go
@@ -104,7 +104,7 @@ func (Implementation) Zaxpy(n int, alpha complex128, x []complex128, incX int, y
if (incY > 0 && (n-1)*incY >= len(y)) || (incY < 0 && (1-n)*incY >= len(y)) {
panic(badY)
}
- if zabs(alpha) == 0 {
+ if dcabs1(alpha) == 0 {
return
}
if incX == 1 && incY == 1 {

blas/gonum: rename zabs to dcabs1