⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nsparith.h

📁 利用intel dsplib 库函数进行特定2FSK信号(需传导频)解调
💻 H
📖 第 1 页 / 共 2 页
字号:
/* dst[i]=dst[i]+src[i];                                                   */

NSPAPI(void, nspdbAdd2,(const double *src,                   double *dst,int n))
NSPAPI(void, nspzbAdd2,(const DCplx  *src,                   DCplx  *dst,int n))

/* dst[i]=srcA[i]+srcB[i];                                                 */

NSPAPI(void, nspdbAdd3,(const double *srcA,const double *srcB,double *dst,int n))
NSPAPI(void, nspzbAdd3,(const DCplx  *srcA,const DCplx  *srcB,DCplx  *dst,int n))

/* dst[i]=dst[i]-val;                                                      */

NSPAPI(void, nspdbSub1,(const double val,                    double *dst,int n))
NSPAPI(void, nspzbSub1,(const DCplx  val,                    DCplx  *dst,int n))

/* dst[i]=dst[i]-val[i];                                                   */

NSPAPI(void, nspdbSub2,(const double *val,                   double *dst,int n))
NSPAPI(void, nspzbSub2,(const DCplx  *val,                   DCplx  *dst,int n))

/* dst[i]=src[i]-val[i];                                                   */

NSPAPI(void, nspdbSub3,(const double *src, const double *val, double *dst,int n))
NSPAPI(void, nspzbSub3,(const DCplx  *src, const DCplx  *val, DCplx  *dst,int n))

/* dst[i]=dst[i]*val;                                                      */

NSPAPI(void, nspdbMpy1,(const double val,                    double *dst,int n))
NSPAPI(void, nspzbMpy1,(const DCplx  val,                    DCplx  *dst,int n))

/* dst[i]=dst[i]*src[i];                                                   */

NSPAPI(void, nspdbMpy2,(const double *src,                   double *dst,int n))
NSPAPI(void, nspzbMpy2,(const DCplx  *src,                   DCplx  *dst,int n))
                                                             
/* dst[i]=srcA[i]*srcB[i];                                                 */

NSPAPI(void, nspdbMpy3,(const double *srcA,const double *srcB,double *dst,int n))
NSPAPI(void, nspzbMpy3,(const DCplx  *srcA,const DCplx  *srcB,DCplx  *dst,int n))

/*-------------------------------------------------------------------------*/
/*                                                                         */
/*        Complex conjugates of scalars and vectors                        */
/*                                                                         */

NSPAPI(void, nspzbConj1,      (      DCplx *vec,             int n))
NSPAPI(void, nspzbConj2,      (const DCplx *src, DCplx *dst, int n))
NSPAPI(void, nspzbConjFlip2,  (const DCplx *src, DCplx *dst, int n))
NSPAPI(void, nspzbConjExtend1,(      DCplx *vec,             int n))
NSPAPI(void, nspzbConjExtend2,(const DCplx *src, DCplx *dst, int n))


/*-------------------------------------------------------------------------*/
/*   Miscellaneous Scalar Functions and Vector Functions                   */
/*        Complex Add, Sub, Mpy, Div, Conj                                 */
/*   These functions perform addition, subtraction, multiplication,        */
/*   division, and conjugation on complex numbers a and b.                 */
/*                                                                         */

NSPAPI(WCplx, nspvAdd, (const WCplx  a, const WCplx  b,
                              int    scaleMode, int   *scaleFactor))
NSPAPI(WCplx, nspvSub, (const WCplx  a, const WCplx  b,
                              int    scaleMode, int   *scaleFactor))
NSPAPI(WCplx, nspvMpy, (const WCplx  a, const WCplx  b,
                              int    scaleMode, int   *scaleFactor))
NSPAPI(WCplx, nspvDiv, (const WCplx  a, const WCplx  b))
NSPAPI(WCplx, nspvConj,(const WCplx  a))

/*---- Additional Functions -----------------------------------------------*/

NSPAPI(WCplx, nspvSet, (short re, short im))

/*-------------------------------------------------------------------------*/
/*        Vector Initialization                                            */
/*   These functions initialize vectors of length n.                       */

NSPAPI(void, nspwbZero,(short *dst, int n))
NSPAPI(void, nspvbZero,(WCplx *dst, int n))

NSPAPI(void, nspwbSet, (short val,          short *dst, int n))
NSPAPI(void, nspvbSet, (short re, short im, WCplx *dst, int n))

NSPAPI(void, nspwbCopy,(const short *src, short *dst, int n))
NSPAPI(void, nspvbCopy,(const WCplx *src, WCplx *dst, int n))

/*-------------------------------------------------------------------------*/
/*        Vector Addition and multiplication                               */
/*   These functions perform element-wise arithmetic on vectors of length n*/

NSPAPI(void, nspwbAdd1,(const short  val,                   short *dst,int n,
                              int    scaleMode, int   *scaleFactor))
NSPAPI(void, nspvbAdd1,(const WCplx  val,                   WCplx *dst,int n,
                              int    scaleMode, int   *scaleFactor))

NSPAPI(void, nspwbAdd2,(const short *src,                   short *dst,int n,
                              int    scaleMode, int   *scaleFactor))
NSPAPI(void, nspvbAdd2,(const WCplx *src,                   WCplx *dst,int n,
                              int    scaleMode, int   *scaleFactor))

NSPAPI(void, nspwbAdd3,(const short *srcA,const short *srcB,short *dst,int n,
                              int    scaleMode, int   *scaleFactor))
NSPAPI(void, nspvbAdd3,(const WCplx *srcA,const WCplx *srcB,WCplx *dst,int n,
                              int    scaleMode, int   *scaleFactor))

NSPAPI(void, nspwbSub1,(const short  val,                   short *dst,int n,
                              int    scaleMode, int   *scaleFactor))
NSPAPI(void, nspvbSub1,(const WCplx  val,                   WCplx *dst,int n,
                              int    scaleMode, int   *scaleFactor))

NSPAPI(void, nspwbSub2,(const short *val,                   short *dst,int n,
                              int    scaleMode, int   *scaleFactor))
NSPAPI(void, nspvbSub2,(const WCplx *val,                   WCplx *dst,int n,
                              int    scaleMode, int   *scaleFactor))

NSPAPI(void, nspwbSub3,(const short *src, const short *val, short *dst,int n,
                              int    scaleMode, int   *scaleFactor))
NSPAPI(void, nspvbSub3,(const WCplx *src, const WCplx *val, WCplx *dst,int n,
                              int    scaleMode, int   *scaleFactor))

NSPAPI(void, nspwbMpy1,(const short  val,                   short *dst,int n,
                              int    scaleMode, int   *scaleFactor))
NSPAPI(void, nspvbMpy1,(const WCplx  val,                   WCplx *dst,int n,
                              int    scaleMode, int   *scaleFactor))

NSPAPI(void, nspwbMpy2,(const short *src,                   short *dst,int n,
                              int    scaleMode, int   *scaleFactor))
NSPAPI(void, nspvbMpy2,(const WCplx *src,                   WCplx *dst,int n,
                              int    scaleMode, int   *scaleFactor))

NSPAPI(void, nspwbMpy3,(const short *srcA,const short *srcB,short *dst,int n,
                              int    scaleMode, int   *scaleFactor))
NSPAPI(void, nspvbMpy3,(const WCplx *srcA,const WCplx *srcB,WCplx *dst,int n,
                              int    scaleMode, int   *scaleFactor))

/*-------------------------------------------------------------------------*/
/*        Complex conjugates of vectors                                    */

NSPAPI(void, nspvbConj1,      (      WCplx *vec,             int n))
NSPAPI(void, nspvbConj2,      (const WCplx *src, WCplx *dst, int n))
NSPAPI(void, nspvbConjFlip2,  (const WCplx *src, WCplx *dst, int n))
NSPAPI(void, nspvbConjExtend1,(      WCplx *vec,             int n))
NSPAPI(void, nspvbConjExtend2,(const WCplx *src, WCplx *dst, int n))


#endif                                  /* _NSPARITH_H                     */
#ifdef __cplusplus
}
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -