Analog Devices VISUALDSP++ 3.5 Manual page 421

C/c++ compiler and library for adsp-219x processors
Hide thumbs Also See for VISUALDSP++ 3.5:
Table of Contents

Advertisement

The following structures are used to represent complex numbers in rectan-
gular coordinates:
typedef struct
{
float re;
float im;
} complex_float;
typedef struct
{
double re;
double im;
} complex_double;
typedef struct
{
fract16 re;
fract16 im;
} complex_fract16
Details of the basic complex arithmetic functions are included in
Run-Time Library Reference" on page
Table 4-1. Complex Functions
Description
Complex Absolute
Value
Complex Addition
Complex
Subtraction
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
Prototype
double cabs (complex_double a);
float cabsf (complex_float a);
fract16 cabs_fr16 (complex_fract16 a);
complex_double cadd (complex_double a, complex_double b);
complex_float caddf (complex_float a, complex_float b);
complex_fract16 cadd_fr16 (complex_fract16 a,
complex_fract16 b);
complex_double csub (complex_double a, complex_double b);
complex_float csubf (complex_float a, complex_float b);
complex_fract16 csub_fr16 (complex_fract16 a,
complex_fract16 b);
DSP Run-Time Library
4-22.
"DSP
4-5

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents