Class NPPNativeMethods.NPPs.DivC
Divides each sample of a signal by a constant.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class DivC
Methods
nppsDivC_16s_ISfs(Int16, CUdeviceptr, Int32, Int32)
16-bit signed short in place signal divided by constant, scale, then clamp to saturated value.
Declaration
public static NppStatus nppsDivC_16s_ISfs(short nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_16s_Sfs(CUdeviceptr, Int16, CUdeviceptr, Int32, Int32)
16-bit signed short signal divided by constant, scale, then clamp to saturated value.
Declaration
public static NppStatus nppsDivC_16s_Sfs(CUdeviceptr pSrc, short nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
System.Int16 | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pDst | Destination signal pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_16sc_ISfs(Npp16sc, CUdeviceptr, Int32, Int32)
16-bit integer complex number (16 bit real, 16 bit imaginary)signal divided by constant, scale, then clamp to saturated value.
Declaration
public static NppStatus nppsDivC_16sc_ISfs(Npp16sc nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_16sc_Sfs(CUdeviceptr, Npp16sc, CUdeviceptr, Int32, Int32)
16-bit integer complex number (16 bit real, 16 bit imaginary) signal divided by constant, scale, then clamp to saturated value.
Declaration
public static NppStatus nppsDivC_16sc_Sfs(CUdeviceptr pSrc, Npp16sc nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
Npp16sc | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pDst | Destination signal pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_16u_ISfs(UInt16, CUdeviceptr, Int32, Int32)
16-bit unsigned short in place signal divided by constant, scale, then clamp to saturated value.
Declaration
public static NppStatus nppsDivC_16u_ISfs(ushort nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_16u_Sfs(CUdeviceptr, UInt16, CUdeviceptr, Int32, Int32)
16-bit unsigned short signal divided by constant, scale, then clamp to saturated value.
Declaration
public static NppStatus nppsDivC_16u_Sfs(CUdeviceptr pSrc, ushort nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
System.UInt16 | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pDst | Destination signal pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_32f(CUdeviceptr, Single, CUdeviceptr, Int32)
32-bit floating point signal divided by constant.
Declaration
public static NppStatus nppsDivC_32f(CUdeviceptr pSrc, float nValue, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
System.Single | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pDst | Destination signal pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_32f_I(Single, CUdeviceptr, Int32)
32-bit floating point in place signal divided by constant.
Declaration
public static NppStatus nppsDivC_32f_I(float nValue, CUdeviceptr pSrcDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
System.Single | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_32fc(CUdeviceptr, Npp32fc, CUdeviceptr, Int32)
32-bit floating point complex number (32 bit real, 32 bit imaginary) signal divided by constant.
Declaration
public static NppStatus nppsDivC_32fc(CUdeviceptr pSrc, Npp32fc nValue, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
Npp32fc | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pDst | Destination signal pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_32fc_I(Npp32fc, CUdeviceptr, Int32)
32-bit floating point complex number (32 bit real, 32 bit imaginary) in place signal divided by constant.
Declaration
public static NppStatus nppsDivC_32fc_I(Npp32fc nValue, CUdeviceptr pSrcDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
Npp32fc | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_64f(CUdeviceptr, Double, CUdeviceptr, Int32)
64-bit floating point signal divided by constant.
Declaration
public static NppStatus nppsDivC_64f(CUdeviceptr pSrc, double nValue, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
System.Double | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pDst | Destination signal pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_64f_I(Double, CUdeviceptr, Int32)
64-bit floating point in place signal divided by constant.
Declaration
public static NppStatus nppsDivC_64f_I(double nValue, CUdeviceptr pSrcDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
System.Double | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. |
System.Int32 | nLength | Length of the vectors, number of items. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_64fc(CUdeviceptr, Npp64fc, CUdeviceptr, Int32)
64-bit floating point complex number (64 bit real, 64 bit imaginary) signal divided by constant.
Declaration
public static NppStatus nppsDivC_64fc(CUdeviceptr pSrc, Npp64fc nValue, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
Npp64fc | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pDst | Destination signal pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_64fc_I(Npp64fc, CUdeviceptr, Int32)
64-bit floating point complex number (64 bit real, 64 bit imaginary) in place signal divided by constant.
Declaration
public static NppStatus nppsDivC_64fc_I(Npp64fc nValue, CUdeviceptr pSrcDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
Npp64fc | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_8u_ISfs(Byte, CUdeviceptr, Int32, Int32)
8-bit unsigned char in place signal divided by constant, scale, then clamp to saturated value
Declaration
public static NppStatus nppsDivC_8u_ISfs(byte nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
Returns
Type | Description |
---|---|
NppStatus |
nppsDivC_8u_Sfs(CUdeviceptr, Byte, CUdeviceptr, Int32, Int32)
8-bit unsigned char signal divided by constant, scale, then clamp to saturated value.
Declaration
public static NppStatus nppsDivC_8u_Sfs(CUdeviceptr pSrc, byte nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
System.Byte | nValue | Constant value to be divided into each vector element |
CUdeviceptr | pDst | Destination signal pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
Returns
Type | Description |
---|---|
NppStatus |