pub unsafe extern "C" fn libsais_plcp_omp(
T: *const u8,
SA: *const i32,
PLCP: *mut i32,
n: i32,
threads: i32,
) -> i32Expand description
Constructs the permuted longest common prefix array (PLCP) of a given string and a suffix array in parallel using OpenMP.
§Arguments
T- [0..n-1] The input string.SA- [0..n-1] The input suffix array.PLCP- [0..n-1] The output permuted longest common prefix array.n- The length of the string and the suffix array.threads- The number of OpenMP threads to use (can be 0 for OpenMP default).
§Returns
0 if no error occurred, -1 otherwise.