- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page