Max / Min of two vectors

Max / Min of two vectors

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

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

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))
...

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya