Function libwalrus::find2T¶
Defined in File torontonian.hpp
Function Documentation¶
-
void
libwalrus::find2T(char *dst, Byte len, Byte *pos, char offset)¶ Given a string of length
len, finds the positions in which it has a 1 and stores its position i, as 2*i and 2*i+1 in consecutive slots of the array pos.It also returns (twice) the number of ones in array dst
- Return
returns twice the number of ones in array
dst.- Parameters
dst: character array representing binary digits.len: length of the arraydst.pos: resulting character array of length2*lenstoring the indices at whichdstcontains the values 1.
libwalrus_cpp_api/function_namespacelibwalrus_1a06686055e2c9b5d1a8619fd49123983c
Download Python script
Download Notebook
View on GitHub
Contents
Downloads