Commit Graph

5 Commits

Author SHA1 Message Date
Vladimir Chalupecky
1687f1afa4 blas/testblas: add znan variable and use it in tests 2018-01-12 12:23:16 +01:00
Vladimir Chalupecky
1c0090b16d blas/testblas: add test cases for Zher2 and Zhpr2 to increase coverage 2017-12-13 22:25:15 +01:00
Vladimir Chalupecky
3dd9be0b9f blas/testblas: move test cases for Zher2 to package-level variable 2017-12-13 22:25:15 +01:00
Vladimir Chalupecky
d4b3b7957c blas/testblas: fix zsame and adjust tests
Previously, the test condition for same-ness of two
complex numbers was wrong. The presence of even a single NaN in the real
or imaginary component of either number made both numbers to be
considered same.

This fix changes the logic so that two complex numbers are considered
same if:
* both numbers have both components NaN
* both numbers have one component NaN and the other is exactly equal
* both numbers have both components exactly equal
2017-12-06 12:15:57 +01:00
Vladimir Chalupecky
f5edf8ecec blas/gonum: add test for Zher2 2017-08-19 21:19:12 +02:00