convolve
convolution
Synopsis
#include <filter.h>
void convolve_fr16(cin1, clen1, cin2, clen2, cout)
const fract16 cin1[];
int clen1;
const fract16 cin2[];
int clen2;
float cout[];
Description
This function convolves two sequences pointed to by
points to the sequence whose length is
cin1
sequence whose length is
has length
cout
Algorithm
Convolution between two sequences
−
clen
2
[ ]
∑
=
cout
n
=
k
0
for
to
n = 0
clen1 + clen2-2
(Values for
cin1[j]
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
/* pointer to input sequence 1
/* length of the input sequence 1
/* pointer to input sequence 2
/* length of the input sequence 2
/* pointer to output sequence
, then resulting sequence pointed to by
clen2
clen1 + clen2 - 1
1
[
(
+
−
cin
1
n
k
clen
2
.
are considered to be zero for
DSP Run-Time Library
and
clen1
and
is described as:
cin1
cin2
]
[
)
(
−
•
1
cin
2
clen
2
j < 0
*/
*/
*/
*/
*/
and
. If
cin1
cin2
points to the
cin2
]
)
−
−
1
k
or
).
j > clen1-1
4-47
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers