Developer Reference

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

Min

Returns the minimum value of a vector.

Syntax

IppStatus ippsMin_16s(const Ipp16s*
pSrc
, int
len
, Ipp16s*
pMin
);
IppStatus ippsMin_32s(const Ipp32s*
pSrc
, int
len
, Ipp32s*
pMin
);
IppStatus ippsMin_32f(const Ipp32f*
pSrc
, int
len
, Ipp32f*
pMin
);
IppStatus ippsMin_64f(const Ipp64f*
pSrc
, int
len
, Ipp64f*
pMin
);
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.
Description
This function returns the minimum value of the input vector
pSrc
, and stores the result in
pMin
.
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.

Example

The example below shows how to use the function
ippsMin
.
Ipp16s src = { 1, -2, 3, 8, -6}; Ipp16s min; int len = 5; ippsMin_16s (src, len, &min );
Result:
min = -6

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804