Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference

ID 790148
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

BWTFwd_SelectSort

Performs the forward BWT transform with specified sort algorithm.

Syntax

IppStatus ippsBWTFwd_SelectSort_8u(const Ipp8u* pSrc, Ipp8u* pDst, Ipp32u len, Ipp32u* index, Ipp8u* pBWTFwdBuf, IppBWTSortAlgorithmHint sortAlgorithmHint);

Include Files

ippdc.h

Domain Dependencies

Headers: ippcore.h, ippvm.h, ipps.h

Libraries: ippcore.lib, ippvm.lib, ipps.lib

Parameters

pSrc

Pointer to the source vector.

pDst

Pointer to the destination vector.

len

Number of elements in the source and destination vectors.

index

Index of the first position for the forward BWT transform.

pBWTFwdBuf

Pointer to the additional buffer.

sortAlgorithmHint

Specifies the sort algorithm used. Possible values are:

  • ippBWTItohTanakaLimSort
  • ippBWTItohTanakaUnlimSort
  • ippBWTSuffixSort
  • ippBWTAutoSort

Description

This function performs the forward BWT transform of len elements starting from pIndex element of the source vector pSrc and stores result in the vector pDst. The parameter sortAlgorithmHint specifies the desired algorithm of sorting. The function uses the external buffer pBuff. The size of this buffer must be computed by calling the function BWTFwdGetBufSize_SelectSort beforehand.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if one of the specified pointers is NULL.

ippStsSizeErr

Indicates an error if len is less than or equal to 0.