Show / Hide Table of Contents

    Class NPPNativeMethods.NPPs.MulC

    Multiplies each sample of a signal by a constant value.

    Inheritance
    System.Object
    NPPNativeMethods.NPPs.MulC
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: ManagedCuda.NPP
    Assembly: NPP.dll
    Syntax
    public static class MulC

    Methods

    nppsMulC_16s_ISfs(Int16, CUdeviceptr, Int32, Int32)

    16-bit signed short in place signal times constant, scale, then clamp to saturated value.

    Declaration
    public static NppStatus nppsMulC_16s_ISfs(short nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    System.Int16 nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_16s_Sfs(CUdeviceptr, Int16, CUdeviceptr, Int32, Int32)

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

    Declaration
    public static NppStatus nppsMulC_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 multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_16sc_ISfs(Npp16sc, CUdeviceptr, Int32, Int32)

    16-bit integer complex number (16 bit real, 16 bit imaginary)signal times constant, scale, then clamp to saturated value.

    Declaration
    public static NppStatus nppsMulC_16sc_ISfs(Npp16sc nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    Npp16sc nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_16sc_Sfs(CUdeviceptr, Npp16sc, CUdeviceptr, Int32, Int32)

    16-bit integer complex number (16 bit real, 16 bit imaginary)signal times constant, scale, then clamp to saturated value.

    Declaration
    public static NppStatus nppsMulC_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 multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_16u_ISfs(UInt16, CUdeviceptr, Int32, Int32)

    16-bit unsigned short in place signal times constant, scale, then clamp to saturated value.

    Declaration
    public static NppStatus nppsMulC_16u_ISfs(ushort nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    System.UInt16 nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_16u_Sfs(CUdeviceptr, UInt16, CUdeviceptr, Int32, Int32)

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

    Declaration
    public static NppStatus nppsMulC_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 multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_32f(CUdeviceptr, Single, CUdeviceptr, Int32)

    32-bit floating point signal times constant.

    Declaration
    public static NppStatus nppsMulC_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 multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_32f_I(Single, CUdeviceptr, Int32)

    32-bit floating point in place signal times constant.

    Declaration
    public static NppStatus nppsMulC_32f_I(float nValue, CUdeviceptr pSrcDst, int nLength)
    Parameters
    Type Name Description
    System.Single nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_32f16s_Sfs(CUdeviceptr, Single, CUdeviceptr, Int32, Int32)

    32-bit floating point signal times constant with output converted to 16-bit signed integer with scaling and saturation of output result.

    Declaration
    public static NppStatus nppsMulC_32f16s_Sfs(CUdeviceptr pSrc, float nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    System.Single nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_32fc(CUdeviceptr, Npp32fc, CUdeviceptr, Int32)

    32-bit floating point complex number (32 bit real, 32 bit imaginary) signal times constant.

    Declaration
    public static NppStatus nppsMulC_32fc(CUdeviceptr pSrc, Npp32fc nValue, CUdeviceptr pDst, int nLength)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    Npp32fc nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_32fc_I(Npp32fc, CUdeviceptr, Int32)

    32-bit floating point complex number (32 bit real, 32 bit imaginary) in place signal times constant.

    Declaration
    public static NppStatus nppsMulC_32fc_I(Npp32fc nValue, CUdeviceptr pSrcDst, int nLength)
    Parameters
    Type Name Description
    Npp32fc nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_32s_ISfs(Int32, CUdeviceptr, Int32, Int32)

    32-bit signed integer in place signal times constant and scale.

    Declaration
    public static NppStatus nppsMulC_32s_ISfs(int nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    System.Int32 nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_32s_Sfs(CUdeviceptr, Int32, CUdeviceptr, Int32, Int32)

    32-bit signed integer signal times constant and scale.

    Declaration
    public static NppStatus nppsMulC_32s_Sfs(CUdeviceptr pSrc, int nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    System.Int32 nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_32sc_ISfs(Npp32sc, CUdeviceptr, Int32, Int32)

    32-bit integer complex number (32 bit real, 32 bit imaginary) in place signal times constant and scale.

    Declaration
    public static NppStatus nppsMulC_32sc_ISfs(Npp32sc nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    Npp32sc nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_32sc_Sfs(CUdeviceptr, Npp32sc, CUdeviceptr, Int32, Int32)

    32-bit integer complex number (32 bit real, 32 bit imaginary) signal times constant and scale.

    Declaration
    public static NppStatus nppsMulC_32sc_Sfs(CUdeviceptr pSrc, Npp32sc nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    Npp32sc nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_64f(CUdeviceptr, Double, CUdeviceptr, Int32)

    64-bit floating point signal times constant.

    Declaration
    public static NppStatus nppsMulC_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 multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_64f_I(Double, CUdeviceptr, Int32)

    64-bit floating point, in place signal times constant.

    Declaration
    public static NppStatus nppsMulC_64f_I(double nValue, CUdeviceptr pSrcDst, int nLength)
    Parameters
    Type Name Description
    System.Double nValue

    Constant value to be multiplied by each vector element

    CUdeviceptr pSrcDst

    In-Place Signal Pointer.

    System.Int32 nLength

    Length of the vectors, number of items.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_64f64s_ISfs(Double, CUdeviceptr, Int32, Int32)

    64-bit floating point signal times constant with in place conversion to 64-bit signed integer and with scaling and saturation of output result.

    Declaration
    public static NppStatus nppsMulC_64f64s_ISfs(double nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    System.Double nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_64fc(CUdeviceptr, Npp64fc, CUdeviceptr, Int32)

    64-bit floating point complex number (64 bit real, 64 bit imaginary) signal times constant.

    Declaration
    public static NppStatus nppsMulC_64fc(CUdeviceptr pSrc, Npp64fc nValue, CUdeviceptr pDst, int nLength)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    Npp64fc nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_64fc_I(Npp64fc, CUdeviceptr, Int32)

    64-bit floating point complex number (64 bit real, 64 bit imaginary) in place signal times constant.

    Declaration
    public static NppStatus nppsMulC_64fc_I(Npp64fc nValue, CUdeviceptr pSrcDst, int nLength)
    Parameters
    Type Name Description
    Npp64fc nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_8u_ISfs(Byte, CUdeviceptr, Int32, Int32)

    8-bit unsigned char in place signal times constant, scale, then clamp to saturated value

    Declaration
    public static NppStatus nppsMulC_8u_ISfs(byte nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_8u_Sfs(CUdeviceptr, Byte, CUdeviceptr, Int32, Int32)

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

    Declaration
    public static NppStatus nppsMulC_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 multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    nppsMulC_Low_32f16s(CUdeviceptr, Single, CUdeviceptr, Int32)

    32-bit floating point signal times constant with output converted to 16-bit signed integer.

    Declaration
    public static NppStatus nppsMulC_Low_32f16s(CUdeviceptr pSrc, float nValue, CUdeviceptr pDst, int nLength)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    System.Single nValue

    Constant value to be multiplied by 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

    NullPointerError, AlignmentError, SizeError.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX