ngspice/src/maths/fft/matlib.h

34 lines
1.3 KiB
C
Raw Normal View History

2010-11-27 17:36:03 +01:00
/* a few routines from a vector/matrix library */
2011-08-08 21:39:15 +02:00
void xpose(double *indata, long iRsiz, double *outdata, long oRsiz, long Nrows, long Ncols);
2010-11-27 17:36:03 +01:00
/* not in-place matrix transpose */
/* INPUTS */
/* *indata = input data array */
/* iRsiz = offset to between rows of input data array */
/* oRsiz = offset to between rows of output data array */
/* Nrows = number of rows in input data array */
/* Ncols = number of columns in input data array */
/* OUTPUTS */
/* *outdata = output data array */
2011-08-08 21:39:15 +02:00
void cxpose(double *indata, long iRsiz, double *outdata, long oRsiz, long Nrows, long Ncols);
2010-11-27 17:36:03 +01:00
/* not in-place complex matrix transpose */
/* INPUTS */
/* *indata = input data array */
/* iRsiz = offset to between rows of input data array */
/* oRsiz = offset to between rows of output data array */
/* Nrows = number of rows in input data array */
/* Ncols = number of columns in input data array */
/* OUTPUTS */
/* *outdata = output data array */
2011-08-08 21:39:15 +02:00
void cvprod(double *a, double *b, double *out, long N);
2010-11-27 17:36:03 +01:00
/* complex vector product, can be in-place */
/* product of complex vector *a times complex vector *b */
/* INPUTS */
/* N vector length */
/* *a complex vector length N complex numbers */
/* *b complex vector length N complex numbers */
/* OUTPUTS */
/* *out complex vector length N */