Skip to main content

Module scan

Module scan 

Source
Expand description

Many walks of one graph side by side, as in a scan of parameters: one walk per CPU thread and, optionally, a stream of walks on the GPU fed by one more thread, all taking the next walk from one queue. Each walk returns the probability of every half-edge summed over its steps (time averages, Kolmogorov–Smirnov distances).

Walks run in reduced precision (f32 on the CPU or on the GPU) are checked: one in fifty, at least one, is recomputed in f64 on the CPU, and if the sums differ by more than the tolerance (relative to their total), all the walks of that kind are recomputed in f64.

Structs§

ScanOptions
How a scan runs.
ScanReport
What a scan did.

Functions§

scan
For each walk, the probability of every half-edge summed over steps steps from initial(i). The walks must share their graph.