bio.core.utils.range

Undocumented in source.

Members

Functions

cached
auto cached(R range)

Caches front element.

chunked
auto chunked(R range, uint chunk_size)

Takes arbitrary input range as an input and returns another range which produces arrays of original elements of size chunk_size.

parallelTransform
auto parallelTransform(Range r, uint chunk_size, uint prefetch_amount)

Version of parallel map using cyclic buffer with prefetching. Uses combination of chunked, prefetch, joiner, and std.parallelism.

prefetch
auto prefetch(Range r, size_t amount)

Keeps a cyclic buffer of size amount which is filled at the construction. After that, each popFront() is accompanied by fetching next element from the original range.

prefixSum
PrefixSum!S prefixSum(S sequence)

Prefix sum.

Structs

Cached
struct Cached(R)
PrefixSum
struct PrefixSum(S)
Undocumented in source.

Meta