blas/gonum: add Zsyrk with test
MODIFY
blas/gonum/cmplx.go
blas/gonum/cmplx.go
@@ -138,9 +138,6 @@ func (Implementation) Cher2k(ul blas.Uplo, t blas.Transpose, n, k int, alpha com
func (Implementation) Zsymm(s blas.Side, ul blas.Uplo, m, n int, alpha complex128, a []complex128, lda int, b []complex128, ldb int, beta complex128, c []complex128, ldc int) {
panic(noComplex)
}
-func (Implementation) Zsyrk(ul blas.Uplo, t blas.Transpose, n, k int, alpha complex128, a []complex128, lda int, beta complex128, c []complex128, ldc int) {
- panic(noComplex)
-}
func (Implementation) Zsyr2k(ul blas.Uplo, t blas.Transpose, n, k int, alpha complex128, a []complex128, lda int, b []complex128, ldb int, beta complex128, c []complex128, ldc int) {
panic(noComplex)
}

MODIFY
blas/gonum/level3cmplx128_test.go
blas/gonum/level3cmplx128_test.go
@@ -13,3 +13,7 @@ import (
func TestZgemm(t *testing.T) {
testblas.ZgemmTest(t, impl)
}
+
+func TestZsyrk(t *testing.T) {
+ testblas.ZsyrkTest(t, impl)
+}

MODIFY
blas/testblas/zgemm.go
blas/testblas/zgemm.go
@@ -33,19 +33,6 @@ func ZgemmTest(t *testing.T, impl Zgemmer) {
}
}
-// transString returns a string representation of blas.Transpose.
-func transString(t blas.Transpose) string {
- switch t {
- case blas.NoTrans:
- return "NoTrans"
- case blas.Trans:
- return "Trans"
- case blas.ConjTrans:
- return "ConjTrans"
- }
- return "unknown trans"
-}
-
func zgemmTest(t *testing.T, impl Zgemmer, tA, tB blas.Transpose, m, n, k int) {
const tol = 1e-13

blas/gonum: add Zsyrk with test