DSP Run-Time Library Guide
Table 4-5. Matrix Functions (Cont'd)
Description
Real
Matrix * Scalar
Multiplication
Real
Matrix + Matrix
Addition
Real
Matrix – Matrix
Subtraction
Real
Matrix * Matrix
Multiplication
Complex
Matrix + Scalar
Addition
Complex
Matrix – Scalar
Subtraction
4-14
Prototype
void matsmlt (const double *a, double b, int n, int m,
double *c);
void matsmltf (const float *a, float b, int n,
int m, float *c);
void matsmlt_fr16 (const fract16 *a,
fract16 b, int n, int m, fract16 *c);
void matmadd (const double *a, const double *b, int n, int m,
double *c);
void matmaddf (const float *a, const float *b, int n, int m,
float *c);
void matmadd_fr16 (const fract16 *a, const fract16 *b, int n,
int m, fract16 *c);
void matmsub (const double *a, const double *b, int n, int m,
double *c);
void matmsubf (const float *a, const float *b, int n, int m,
float *c);
void matmsub_fr16 (const fract16 *a, const fract16 *b, int n,
int m, fract16 *c);
void matmmlt (const double *a, int n, int k, const double *b,
int m, double *c);
void matmmltf (const float *a, int n, int k, const float *b,
int m, float *c);
void matmmlt_fr16 (const fract16 *a, int n, int k,
const fract16 *b, int m, fract16 *c);
void cmatsadd (const complex_double *a, complex_double b,
int n, int m, complex_double *c);
void cmatsaddf (const complex_float *a, complex_float b, int n,
int m, complex_float *c);
void cmatsadd_fr16 (const complex_fract16 *a,
complex_fract16 b, int n, int m, complex_fract16 *c);
void cmatssub (const complex_double *a, complex_double b,
int n, int m, complex_double *c);
void cmatssubf (const complex_float *a, complex_float b, int n,
int m, complex_float *c);
void cmatssub_fr16 (const complex_fract16 *a,
complex_fract16 b, int n, int m, complex_fract16 *c);
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?