Hi
At
|
b = numpy.random.rand(10240, 10240).astype(numpy.intc) |
The numpy.rand() function returns float-type array with value of [0 ,1).
Combined with .astype(intc) will round all value to zero.
Either multiply a large number before astype() or use random.randint() can fix the problem.
This problem does not affect the result of speed test, but does seem weird.