libsais_lcp_omp

Function libsais_lcp_omp 

Source
pub unsafe extern "C" fn libsais_lcp_omp(
    PLCP: *const i32,
    SA: *const i32,
    LCP: *mut i32,
    n: i32,
    threads: i32,
) -> i32
Expand description

Constructs the longest common prefix array (LCP) of a given permuted longest common prefix array (PLCP) and a suffix array in parallel using OpenMP.

§Arguments

  • PLCP - [0..n-1] The input permuted longest common prefix array.
  • SA - [0..n-1] The input suffix array or generalized suffix array (GSA).
  • LCP - [0..n-1] The output longest common prefix array (can be SA).
  • n - The length of the permuted longest common prefix array 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.