Developer Reference

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

WinBartlett

Multiplies a vector by a Bartlett windowing function.

Syntax

IppStatus ippsWinBartlett_16s(const Ipp16s*
pSrc
, Ipp16s*
pDst
, int
len
);
IppStatus ippsWinBartlett_32f(const Ipp32f*
pSrc
, Ipp32f*
pDst
, int
len
);
IppStatus ippsWinBartlett_64f(const Ipp64f*
pSrc
, Ipp64f*
pDst
, int
len
);
IppStatus ippsWinBartlett_16sc(const Ipp16sc*
pSrc
, Ipp16sc*
pDst
, int
len
);
IppStatus ippsWinBartlett_32fc(const Ipp32fc*
pSrc
, Ipp32fc*
pDst
, int
len
);
IppStatus ippsWinBartlett_64fc(const Ipp64fc*
pSrc
, Ipp64fc*
pDst
, int
len
);
IppStatus ippsWinBartlett_16s_I(Ipp16s*
pSrcDst
, int
len
);
IppStatus ippsWinBartlett_32f_I(Ipp32f*
pSrcDst
, int
len
);
IppStatus ippsWinBartlett_64f_I(Ipp64f*
pSrcDst
, int
len
);
IppStatus ippsWinBartlett_16sc_I(Ipp16sc*
pSrcDst
, int
len
);
IppStatus ippsWinBartlett_32fc_I(Ipp32fc*
pSrcDst
, int
len
);
IppStatus ippsWinBartlett_64fc_I(Ipp64fc*
pSrcDst
, int
len
);
Include Files
ipps.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
Libraries:
ippcore.lib
,
ippvm.lib
Parameters
pSrc
Pointer to the source vector.
pDst
Pointer to the destination vector.
pSrcDst
Pointer to the source and destination vector for the in-place operation.
len
Number of elements in the vector.
Description
This function multiplies the vector
pSrc
by the Bartlett (triangle) window, and stores the result in
pDst
.
The in-place flavors of
ippsWinBartlett
multiply the
pSrcDst
by the Bartlett (triangle) window and store the result in
pSrcDst
.
The complex types multiply both the real and imaginary parts of the vector by the same window.
The Bartlett window is defined as follows:
Return Values
ippStsNoErr
Indicates no error.
ippStsNullPtrErr
Indicates an error when the
pSrc
,
pDst
, or
pSrcDst
pointer is
NULL
.
ippStsSizeErr
Indicates an error when
len
is less than 3.

Example

The example below shows how to use the function
ippsWinBartlett_32f_I
.
void bartlett(void) { Ipp32f x[8]; ippsSet_32f(1, x, 8); ippsWinBartlett_32f_I(x, 8); printf_32f(“bartlett (half) =”, x, 4, ippStsNoErr); }
Output:
bartlett (half) = 0.000000 0.285714 0.571429 0.857143 Matlab* Analog: >> b = bartlett(8); b(1:4)'

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