MinAbsIndx

Returns the minimum absolute value of a vector and the index of the corresponding element.

Syntax

IppStatus ippsMinAbsIndx_16s(const Ipp16s* pSrc, int len, Ipp16s* pMinAbs, int* pIndx);

IppStatus ippsMinAbsIndx_32s(const Ipp32s* pSrc, int len, Ipp32s* pMinAbs, int* pIndx);

Parameters

pSrc

Pointer to the source vector.

pMinAbs

Pointer to the output result.

len

Number of elements in the vector.

pIndx

Pointer to the index value of the corresponding element.

Description

The function ippsMinAbsIndx is declared in the ipps.h file. This function returns the minimum absolute value pMinAbs of the input vector pSrc, and the index of the corresponding element pIndx. If there are several elements with equal maximum absolute value, the first index from the beginning is returned.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsSizeErr

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

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.