Function
computeSplitters
Compute splitters for a sequence of objects.
Include Headers
seqan/parallel.h
Parameters
Resulting splitters, will be resized to contain Types: Alloc String | |
The number of objects to split. | |
The number of chunks. |
Remarks
The first count - 1 chunks will have the size ceil(size / count) , the last chunk will contain the rest.
Examples
Most simple case for splitting.
computeSplitters(splitters, 10, 5);
// splitters == {0, 5, 10}
In this case, the last chunks will stay empty.
// splitters == {0, 1, 2, 3, 3, 3}
SeqAn - Sequence Analysis Library - www.seqan.de