blas/testblas: add test cases for Zher2 and Zhpr2 to increase coverage
MODIFY
blas/testblas/zher2.go
blas/testblas/zher2.go
@@ -54,6 +54,64 @@ var zher2TestCases = []struct {
-173 - 55i, -19 + 89i, 51 - 181i, -66 + 0i,
},
},
+ {
+ alpha: 1 + 2i,
+ incX: 1,
+ incY: 1,
+ x: []complex128{
+ -6 + 2i,
+ -2 - 4i,
+ 0 + 0i,
+ 0 + 7i,
+ },
+ y: []complex128{
+ 2 - 5i,
+ -8 - 9i,
+ 0 + 0i,
+ 6 + 6i,
+ },
+ a: []complex128{
+ 2 + 0i, -9 + 7i, 3 + 11i, 10 - 1i,
+ -9 - 7i, 16 + 0i, -5 + 2i, -7 - 5i,
+ 3 - 11i, -5 - 2i, 14 + 0i, 2 - 1i,
+ 10 + 1i, -7 + 5i, 2 + 1i, 18 + 0i,
+ },
+ want: []complex128{
+ 62 + 0i, 213 - 17i, 3 + 11i, -173 + 55i,
+ 213 + 17i, 64 + 0i, -5 + 2i, 30 + 93i,
+ 3 - 11i, -5 - 2i, 14 + 0i, 2 - 1i,
+ -173 - 55i, 30 - 93i, 2 + 1i, -66 + 0i,
+ },
+ },
+ {
+ alpha: 1 + 2i,
+ incX: 2,
+ incY: 4,
+ x: []complex128{
+ -6 + 2i,
+ -2 - 4i,
+ 0 + 0i,
+ 0 + 7i,
+ },
+ y: []complex128{
+ 2 - 5i,
+ -8 - 9i,
+ 0 + 0i,
+ 6 + 6i,
+ },
+ a: []complex128{
+ 2 + 0i, -9 + 7i, 3 + 11i, 10 - 1i,
+ -9 - 7i, 16 + 0i, -5 + 2i, -7 - 5i,
+ 3 - 11i, -5 - 2i, 14 + 0i, 2 - 1i,
+ 10 + 1i, -7 + 5i, 2 + 1i, 18 + 0i,
+ },
+ want: []complex128{
+ 62 + 0i, 213 - 17i, 3 + 11i, -173 + 55i,
+ 213 + 17i, 64 + 0i, -5 + 2i, 30 + 93i,
+ 3 - 11i, -5 - 2i, 14 + 0i, 2 - 1i,
+ -173 - 55i, 30 - 93i, 2 + 1i, -66 + 0i,
+ },
+ },
{
alpha: 1 + 2i,
incX: 3,

blas/testblas: add test cases for Zher2 and Zhpr2 to increase coverage