Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.

Max / Min of two vectors

a_b_2
Beginner
194 Views

Hello everyone,

I want to know if Intel IPP offers a function to compute the componentwise maximum (minimum) of two vectors, i.e.

c=max(a,b) <--> c_i =max(a_i,b_i)

where a and b are vectors of float (32f) or doubles (64f).

I could not find it in the reference manual.

Sincerely,

M. Ampf

0 Kudos
1 Reply
SergeyKostrov
Valued Contributor II
194 Views
Please take a look at a set of functions in ipps.h: ... /* //////////////////////////////////////////////////////////////////////////// // Names: ippsMinEvery, ippsMaxEvery // Purpose: calculation min/max value for every element of two vectors // Parameters: // pSrc pointer to input vector // pSrcDst pointer to input/output vector // len vector's length // Return: // ippStsNullPtrErr pointer(s) to the data is NULL // ippStsSizeErr vector`s length is less or equal zero // ippStsNoErr otherwise */ IPPAPI(IppStatus, ippsMinEvery_16s_I, (const Ipp16s* pSrc, Ipp16s* pSrcDst, int len)) IPPAPI(IppStatus, ippsMinEvery_32s_I, (const Ipp32s* pSrc, Ipp32s* pSrcDst, int len)) IPPAPI(IppStatus, ippsMinEvery_32f_I, (const Ipp32f* pSrc, Ipp32f* pSrcDst, int len)) IPPAPI(IppStatus, ippsMaxEvery_16s_I, (const Ipp16s* pSrc, Ipp16s* pSrcDst, int len)) IPPAPI(IppStatus, ippsMaxEvery_32s_I, (const Ipp32s* pSrc, Ipp32s* pSrcDst, int len)) IPPAPI(IppStatus, ippsMaxEvery_32f_I, (const Ipp32f* pSrc, Ipp32f* pSrcDst, int len)) ...
Reply