NVIDIA Performance Primitives (NPP)  Version 9.1
Functions

Squares each sample of a signal. More...

Functions

NppStatus nppsSqr_32f (const Npp32f *pSrc, Npp32f *pDst, int nLength)
 32-bit floating point signal squared. More...
 
NppStatus nppsSqr_64f (const Npp64f *pSrc, Npp64f *pDst, int nLength)
 64-bit floating point signal squared. More...
 
NppStatus nppsSqr_32fc (const Npp32fc *pSrc, Npp32fc *pDst, int nLength)
 32-bit complex floating point signal squared. More...
 
NppStatus nppsSqr_64fc (const Npp64fc *pSrc, Npp64fc *pDst, int nLength)
 64-bit complex floating point signal squared. More...
 
NppStatus nppsSqr_32f_I (Npp32f *pSrcDst, int nLength)
 32-bit floating point signal squared. More...
 
NppStatus nppsSqr_64f_I (Npp64f *pSrcDst, int nLength)
 64-bit floating point signal squared. More...
 
NppStatus nppsSqr_32fc_I (Npp32fc *pSrcDst, int nLength)
 32-bit complex floating point signal squared. More...
 
NppStatus nppsSqr_64fc_I (Npp64fc *pSrcDst, int nLength)
 64-bit complex floating point signal squared. More...
 
NppStatus nppsSqr_8u_Sfs (const Npp8u *pSrc, Npp8u *pDst, int nLength, int nScaleFactor)
 8-bit unsigned char signal squared, scale, then clamp to saturated value. More...
 
NppStatus nppsSqr_16u_Sfs (const Npp16u *pSrc, Npp16u *pDst, int nLength, int nScaleFactor)
 16-bit unsigned short signal squared, scale, then clamp to saturated value. More...
 
NppStatus nppsSqr_16s_Sfs (const Npp16s *pSrc, Npp16s *pDst, int nLength, int nScaleFactor)
 16-bit signed short signal squared, scale, then clamp to saturated value. More...
 
NppStatus nppsSqr_16sc_Sfs (const Npp16sc *pSrc, Npp16sc *pDst, int nLength, int nScaleFactor)
 16-bit complex signed short signal squared, scale, then clamp to saturated value. More...
 
NppStatus nppsSqr_8u_ISfs (Npp8u *pSrcDst, int nLength, int nScaleFactor)
 8-bit unsigned char signal squared, scale, then clamp to saturated value. More...
 
NppStatus nppsSqr_16u_ISfs (Npp16u *pSrcDst, int nLength, int nScaleFactor)
 16-bit unsigned short signal squared, scale, then clamp to saturated value. More...
 
NppStatus nppsSqr_16s_ISfs (Npp16s *pSrcDst, int nLength, int nScaleFactor)
 16-bit signed short signal squared, scale, then clamp to saturated value. More...
 
NppStatus nppsSqr_16sc_ISfs (Npp16sc *pSrcDst, int nLength, int nScaleFactor)
 16-bit complex signed short signal squared, scale, then clamp to saturated value. More...
 

Detailed Description

Squares each sample of a signal.

Function Documentation

NppStatus nppsSqr_16s_ISfs ( Npp16s *  pSrcDst,
int  nLength,
int  nScaleFactor 
)

16-bit signed short signal squared, scale, then clamp to saturated value.

Parameters
pSrcDstIn-Place Signal Pointer.
nLengthSignal Length.
nScaleFactorInteger Result Scaling.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_16s_Sfs ( const Npp16s *  pSrc,
Npp16s *  pDst,
int  nLength,
int  nScaleFactor 
)

16-bit signed short signal squared, scale, then clamp to saturated value.

Parameters
pSrcSource Signal Pointer.
pDstDestination Signal Pointer.
nLengthSignal Length.
nScaleFactorInteger Result Scaling.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_16sc_ISfs ( Npp16sc *  pSrcDst,
int  nLength,
int  nScaleFactor 
)

16-bit complex signed short signal squared, scale, then clamp to saturated value.

Parameters
pSrcDstIn-Place Signal Pointer.
nLengthSignal Length.
nScaleFactorInteger Result Scaling.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_16sc_Sfs ( const Npp16sc *  pSrc,
Npp16sc *  pDst,
int  nLength,
int  nScaleFactor 
)

16-bit complex signed short signal squared, scale, then clamp to saturated value.

Parameters
pSrcSource Signal Pointer.
pDstDestination Signal Pointer.
nLengthSignal Length.
nScaleFactorInteger Result Scaling.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_16u_ISfs ( Npp16u *  pSrcDst,
int  nLength,
int  nScaleFactor 
)

16-bit unsigned short signal squared, scale, then clamp to saturated value.

Parameters
pSrcDstIn-Place Signal Pointer.
nLengthSignal Length.
nScaleFactorInteger Result Scaling.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_16u_Sfs ( const Npp16u *  pSrc,
Npp16u *  pDst,
int  nLength,
int  nScaleFactor 
)

16-bit unsigned short signal squared, scale, then clamp to saturated value.

Parameters
pSrcSource Signal Pointer.
pDstDestination Signal Pointer.
nLengthSignal Length.
nScaleFactorInteger Result Scaling.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_32f ( const Npp32f *  pSrc,
Npp32f *  pDst,
int  nLength 
)

32-bit floating point signal squared.

Parameters
pSrcSource Signal Pointer.
pDstDestination Signal Pointer.
nLengthSignal Length.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_32f_I ( Npp32f *  pSrcDst,
int  nLength 
)

32-bit floating point signal squared.

Parameters
pSrcDstIn-Place Signal Pointer.
nLengthSignal Length.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_32fc ( const Npp32fc *  pSrc,
Npp32fc *  pDst,
int  nLength 
)

32-bit complex floating point signal squared.

Parameters
pSrcSource Signal Pointer.
pDstDestination Signal Pointer.
nLengthSignal Length.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_32fc_I ( Npp32fc *  pSrcDst,
int  nLength 
)

32-bit complex floating point signal squared.

Parameters
pSrcDstIn-Place Signal Pointer.
nLengthSignal Length.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_64f ( const Npp64f *  pSrc,
Npp64f *  pDst,
int  nLength 
)

64-bit floating point signal squared.

Parameters
pSrcSource Signal Pointer.
pDstDestination Signal Pointer.
nLengthSignal Length.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_64f_I ( Npp64f *  pSrcDst,
int  nLength 
)

64-bit floating point signal squared.

Parameters
pSrcDstIn-Place Signal Pointer.
nLengthSignal Length.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_64fc ( const Npp64fc *  pSrc,
Npp64fc *  pDst,
int  nLength 
)

64-bit complex floating point signal squared.

Parameters
pSrcSource Signal Pointer.
pDstDestination Signal Pointer.
nLengthSignal Length.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_64fc_I ( Npp64fc *  pSrcDst,
int  nLength 
)

64-bit complex floating point signal squared.

Parameters
pSrcDstIn-Place Signal Pointer.
nLengthSignal Length.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_8u_ISfs ( Npp8u *  pSrcDst,
int  nLength,
int  nScaleFactor 
)

8-bit unsigned char signal squared, scale, then clamp to saturated value.

Parameters
pSrcDstIn-Place Signal Pointer.
nLengthSignal Length.
nScaleFactorInteger Result Scaling.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsSqr_8u_Sfs ( const Npp8u *  pSrc,
Npp8u *  pDst,
int  nLength,
int  nScaleFactor 
)

8-bit unsigned char signal squared, scale, then clamp to saturated value.

Parameters
pSrcSource Signal Pointer.
pDstDestination Signal Pointer.
nLengthSignal Length.
nScaleFactorInteger Result Scaling.
Returns
Signal Data Related Error Codes, Length Related Error Codes.

Copyright © 2009-2017 NVIDIA Corporation