The matrix functions defined in the
Table
4-5. In most of the function prototypes:
is a pointer to input matrix
*a
is a pointer to input matrix
*b
is an input scalar
b
is the number of rows
n
is the number of columns
m
is a pointer to output matrix
*c
In the
matrix*matrix
and
and
are the dimensions of matrix
k
m
The functions described by this header assume that input array arguments
are constant; that is, their contents do not change during the course of the
routine. In particular, this means the input arguments do not overlap with
any output argument.
Table 4-5. Matrix Functions
Description
Real
Matrix + Scalar
Addition
Real
Matrix – Scalar
Subtraction
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
functions,
n
Prototype
void matsadd (const double *a, const double b, int n, int m,
double *c);
void matsaddf (const float *a, const float b, int n, int m,
float *c);
void matsadd_fr16 (const fract16 *a, const fract16 b, int n,
int m, fract16 *c);
void matssub (const double *a, const double b, int n, int m,
double *c);
void matssubf (const float *a, const float b, int n, int m,
float *c);
void matssub_fr16 (const fract16 *a, const fract16 b, int n,
int m, fract16 *c);
DSP Run-Time Library
header file are listed in
matrix.h
a [] []
b [] []
c [] []
and
are the dimensions of matrix
k
.
b
a
4-13
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?