Expand description
Rust translation of upstream libsais 2.10.4 by Ilya Grebnov.
This module exposes the 32-bit suffix array, BWT, unBWT, PLCP and LCP entry
points (mirroring libsais.h). The 16-bit (libsais16), 64-bit
(libsais64) and 16-bit/64-bit (libsais16x64) variants live in the
sibling modules.
Re-exports§
pub use libsais16::libsais16;pub use libsais16::SaSint as SaSint16;pub use libsais16::SaUint as SaUint16;pub use libsais16x64::libsais16x64;pub use libsais16x64::SaSint as SaSint16x64;pub use libsais16x64::SaUint as SaUint16x64;pub use libsais64::libsais64;pub use libsais64::SaSint as SaSint64;pub use libsais64::SaUint as SaUint64;
Modules§
- libsais16
- Rust translation of upstream libsais 2.10.4 by Ilya Grebnov.
- libsais64
- Rust translation of upstream libsais 2.10.4 by Ilya Grebnov.
- libsais16x64
- Rust translation of upstream libsais 2.10.4 by Ilya Grebnov.
Structs§
Constants§
- ALPHABET_
SIZE - LIBSAIS_
FLAGS_ BWT - LIBSAIS_
FLAGS_ GSA - LIBSAIS_
FLAGS_ NONE - LIBSAIS_
LOCAL_ BUFFER_ SIZE - LIBSAIS_
PER_ THREAD_ CACHE_ SIZE - SAINT_
BIT - SAINT_
MAX - SAINT_
MIN - SUFFIX_
GROUP_ BIT - SUFFIX_
GROUP_ MARKER - UNBWT_
FASTBITS
Functions§
- create_
ctx - Creates the libsais context that allows reusing allocated memory with each libsais operation. In multi-threaded environments, use one context per thread for parallel executions.
- create_
ctx_ omp - Creates the libsais context that allows reusing allocated memory with each parallel libsais operation using OpenMP. In multi-threaded environments, use one context per thread for parallel executions.
- free_
ctx - Destroys the libsass context and free previusly allocated memory.
- libsais
- Constructs the suffix array of a given string.
- libsais_
bwt - Constructs the burrows-wheeler transformed string (BWT) of a given string.
- libsais_
bwt_ aux - Constructs the burrows-wheeler transformed string (BWT) of a given string with auxiliary indexes.
- libsais_
bwt_ aux_ ctx - Constructs the burrows-wheeler transformed string (BWT) of a given string with auxiliary indexes using libsais context.
- libsais_
bwt_ aux_ omp - Constructs the burrows-wheeler transformed string (BWT) of a given string with auxiliary indexes in parallel using OpenMP.
- libsais_
bwt_ ctx - Constructs the burrows-wheeler transformed string (BWT) of a given string using libsais context.
- libsais_
bwt_ omp - Constructs the burrows-wheeler transformed string (BWT) of a given string in parallel using OpenMP.
- libsais_
ctx - Constructs the suffix array of a given string using libsais context.
- libsais_
gsa - Constructs the generalized suffix array (GSA) of given string set.
- libsais_
gsa_ ctx - Constructs the generalized suffix array (GSA) of given string set using libsais context.
- libsais_
gsa_ omp - Constructs the generalized suffix array (GSA) of given string set in parallel using OpenMP.
- libsais_
int - Constructs the suffix array of a given integer array. Note, during construction input array will be modified, but restored at the end if no errors occurred.
- libsais_
int_ omp - Constructs the suffix array of a given integer array in parallel using OpenMP. Note, during construction input array will be modified, but restored at the end if no errors occurred.
- libsais_
lcp - Constructs the longest common prefix array (LCP) of a given permuted longest common prefix array (PLCP) and a suffix array.
- libsais_
lcp_ omp - Constructs the longest common prefix array (LCP) of a given permuted longest common prefix array (PLCP) and a suffix array in parallel using OpenMP.
- libsais_
omp - Constructs the suffix array of a given string in parallel using OpenMP.
- libsais_
plcp - Constructs the permuted longest common prefix array (PLCP) of a given string and a suffix array.
- libsais_
plcp_ gsa - Constructs the permuted longest common prefix array (PLCP) of a given string set and a generalized suffix array (GSA).
- libsais_
plcp_ gsa_ omp - Constructs the permuted longest common prefix array (PLCP) of a given string set and a generalized suffix array (GSA) in parallel using OpenMP.
- libsais_
plcp_ int - Constructs the permuted longest common prefix array (PLCP) of a integer array and a suffix array.
- libsais_
plcp_ int_ omp - Constructs the permuted longest common prefix array (PLCP) of a given integer array and a suffix array in parallel using OpenMP.
- libsais_
plcp_ omp - Constructs the permuted longest common prefix array (PLCP) of a given string and a suffix array in parallel using OpenMP.
- libsais_
unbwt - Constructs the original string from a given burrows-wheeler transformed string (BWT) with primary index.
- libsais_
unbwt_ aux - Constructs the original string from a given burrows-wheeler transformed string (BWT) with auxiliary indexes.
- libsais_
unbwt_ aux_ ctx - Constructs the original string from a given burrows-wheeler transformed string (BWT) with auxiliary indexes using libsais reverse BWT context.
- libsais_
unbwt_ aux_ omp - Constructs the original string from a given burrows-wheeler transformed string (BWT) with auxiliary indexes in parallel using OpenMP.
- libsais_
unbwt_ ctx - Constructs the original string from a given burrows-wheeler transformed string (BWT) with primary index using libsais reverse BWT context.
- libsais_
unbwt_ omp - Constructs the original string from a given burrows-wheeler transformed string (BWT) with primary index in parallel using OpenMP.
- unbwt_
create_ ctx - Creates the libsais reverse BWT context that allows reusing allocated memory with each libsais_unbwt_* operation. In multi-threaded environments, use one context per thread for parallel executions.
- unbwt_
create_ ctx_ omp - Creates the libsais reverse BWT context that allows reusing allocated memory with each parallel libsais_unbwt_* operation using OpenMP. In multi-threaded environments, use one context per thread for parallel executions.
- unbwt_
free_ ctx - Destroys the libsass reverse BWT context and free previusly allocated memory.