(Ms, b)
| 53 | |
| 54 | |
| 55 | def reduce_state(Ms, b): |
| 56 | m = 1 << b |
| 57 | |
| 58 | # We concatenated all of the states, now we need to get the max |
| 59 | # value for each j in both |
| 60 | Ms = Ms.reshape((len(Ms) // m), m) |
| 61 | return Ms.max(axis=0) |
| 62 | |
| 63 | |
| 64 | def estimate_count(Ms, b): |
no test coverage detected
searching dependent graphs…