(x)
| 103 | |
| 104 | |
| 105 | def uniform_from_uint32(x): |
| 106 | out = np.empty(len(x) // 2) |
| 107 | for i in range(0, len(x), 2): |
| 108 | a = x[i] >> 5 |
| 109 | b = x[i + 1] >> 6 |
| 110 | out[i // 2] = (a * 67108864.0 + b) / 9007199254740992.0 |
| 111 | return out |
| 112 | |
| 113 | |
| 114 | def uniform_from_dsfmt(x): |
no outgoing calls
no test coverage detected
searching dependent graphs…