libsais_unbwt_omp

Function libsais_unbwt_omp 

Source
pub unsafe extern "C" fn libsais_unbwt_omp(
    T: *const u8,
    U: *mut u8,
    A: *mut i32,
    n: i32,
    freq: *const i32,
    i: i32,
    threads: i32,
) -> i32
Expand description

Constructs the original string from a given burrows-wheeler transformed string (BWT) with primary index in parallel using OpenMP.

§Arguments

  • T - [0..n-1] The input string.
  • U - [0..n-1] The output string (can be T).
  • A - [0..n] The temporary array (NOTE, temporary array must be n + 1 size).
  • n - The length of the given string.
  • freq - [0..255] The input symbol frequency table (can be NULL).
  • i - The primary index.
  • threads - The number of OpenMP threads to use (can be 0 for OpenMP default).

§Returns

0 if no error occurred, -1 or -2 otherwise.