.allTuplesSortedCpp {GenomicTuples} | R Documentation |
An internal helper function to check that each tuple is sorted in increasing order; only used for tuples of size > 2.
.allTuplesSortedCpp(pos1, internal_pos, posm)
pos1 |
An integer vector. |
internal_pos |
An integer matrix. |
posm |
An integer vector. |
.allTuplesSorted is adapted from http://stackoverflow.com/a/7601857. Strict inequalities are required.
TRUE if each tuple is sorted in strictly increasing order, FALSE otherwise.