(x)
| 92 | |
| 93 | |
| 94 | def uniform_from_uint32(x): |
| 95 | out = np.empty(len(x) // 2) |
| 96 | for i in range(0, len(x), 2): |
| 97 | a = x[i] >> 5 |
| 98 | b = x[i + 1] >> 6 |
| 99 | out[i // 2] = (a * 67108864.0 + b) / 9007199254740992.0 |
| 100 | return out |
| 101 | |
| 102 | |
| 103 | def uniform_from_dsfmt(x): |
no outgoing calls
no test coverage detected