Commit Graph

7 Commits

Author SHA1 Message Date
Dan Kortschak
bc349ecfab all: replace internal rand shim with math/rand/v2 2025-02-01 22:18:04 +10:30
Dan Kortschak
cf3307fa63 all: partially migrate to math/rand/v2
This is not intended to be a completed transition since it leaves the
libraries unusable to external client code, but rather as a step towards
use of math/rand/v2. This initial step allows repair of sequence change
failures without having to worry about API difference.
2025-02-01 22:18:04 +10:30
Vladimir Chalupecky
1687f1afa4 blas/testblas: add znan variable and use it in tests 2018-01-12 12:23:16 +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
kortschak
fa0c5aa7bc all: use golang.org/x/exp/rand instead of math/rand 2017-11-17 11:52:34 +10:30
kortschak
805531d142 all: change capitalization of gonum in license header 2017-11-02 06:54:08 +10:30
Vladimir Chalupecky
f9e54dc645 blas/gonum: add test for Zcopy 2017-07-31 10:24:23 +02:00