Developer Reference

  • 2020
  • 10/21/2020
  • Public Content
Contents

MinIndx

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

Syntax

IppStatus ippsMinIndx_16s(const Ipp16s*
pSrc
, int
len
, Ipp16s*
pMin
, int*
pIndx
);
IppStatus ippsMinIndx_32s(const Ipp32s*
pSrc
, int
len
, Ipp32s*
pMin
, int*
pIndx
);
IppStatus ippsMinIndx_32f(const Ipp32f*
pSrc
, int
len
, Ipp32f*
pMin
, int*
pIndx
);
IppStatus ippsMinIndx_64f(const Ipp64f*
pSrc
, int
len
, Ipp64f*
pMin
, int*
pIndx
);
Include Files
ipps.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
Libraries:
ippcore.lib
,
ippvm.lib
Parameters
pSrc
Pointer to the source vector.
pMin
Pointer to the output result.
len
Number of elements in the vector.
pIndx
Pointer to the index value of the minimum element.
Description
This function returns the minimum value of the input vector
pSrc
and stores the result in
pMin
. If
pIndx
is not a
NULL
pointer, the function returns the index of the minimum element and stores it in
pIndx
. If there are several equal minimum elements, the first index from the beginning is returned.
Return Values
ippStsNoErr
Indicates no error.
ippStsNullPtrErr
Indicates an error when the
pMin
or
pSrc
pointer is
NULL
.
ippStsSizeErr
Indicates an error when
len
is less than or equal to 0.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.